Skip to content

Commit

Permalink
Added omitted query string data to request headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
cemaleker committed Jul 14, 2012
1 parent cd2ca41 commit cb7ead0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions httpie/httpmessage.py
Expand Up @@ -30,9 +30,10 @@ def from_request(request):
body = request.__class__._encode_params(body)

return HTTPMessage(
line='{method} {path} HTTP/1.1'.format(
line='{method} {path}{query} HTTP/1.1'.format(
method=request.method,
path=url.path or '/'),
path=url.path or '/',
query='' if url.query is '' else '?' + url.query),
headers='\n'.join(str('%s: %s') % (name, value)
for name, value
in request_headers.items()),
Expand Down

0 comments on commit cb7ead0

Please sign in to comment.