1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00

Assume "/" as the Request-URI for printing when none present.

This commit is contained in:
Jakub Roztocil 2012-03-14 19:30:12 +01:00
parent 6a1f0248e1
commit ccbea8c96e

View File

@ -60,7 +60,7 @@ def make_request_message(request):
return HTTPMessage(
line='{method} {path} HTTP/1.1'.format(
method=request.method,
path=url.path),
path=url.path or '/'),
headers='\n'.join('%s: %s' % (name, value)
for name, value
in request_headers.iteritems()),