From 70b36580044c7eb0231fbfa8464c283cd461dc14 Mon Sep 17 00:00:00 2001 From: Vladimir Berkutov Date: Sat, 2 Jun 2012 23:09:43 +0400 Subject: [PATCH] --verbose flag was not working. Here is bugfix. --- httpie/httpmessage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/httpmessage.py b/httpie/httpmessage.py index e96dd691..485fd1b6 100644 --- a/httpie/httpmessage.py +++ b/httpie/httpmessage.py @@ -25,7 +25,7 @@ def from_request(request): headers='\n'.join(str('%s: %s') % (name, value) for name, value in request_headers.items()), - body=request._enc_data, + body=request.data, content_type=request_headers.get('Content-Type') )