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:
parent
6a1f0248e1
commit
ccbea8c96e
@ -60,7 +60,7 @@ def make_request_message(request):
|
|||||||
return HTTPMessage(
|
return HTTPMessage(
|
||||||
line='{method} {path} HTTP/1.1'.format(
|
line='{method} {path} HTTP/1.1'.format(
|
||||||
method=request.method,
|
method=request.method,
|
||||||
path=url.path),
|
path=url.path or '/'),
|
||||||
headers='\n'.join('%s: %s' % (name, value)
|
headers='\n'.join('%s: %s' % (name, value)
|
||||||
for name, value
|
for name, value
|
||||||
in request_headers.iteritems()),
|
in request_headers.iteritems()),
|
||||||
|
Loading…
Reference in New Issue
Block a user