forked from extern/httpie-cli
Assume "/" as the Request-URI for printing when none present.
This commit is contained in:
parent
6a1f0248e1
commit
ccbea8c96e
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user