[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] hotfix: fix bug that lead to body not being included
commit 3a4d9ef5482f6af884a23a05b9548e816f3bdc18
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
Date: Mon Feb 22 18:27:35 2016 +0100
hotfix: fix bug that lead to body not being included
---
ooni/templates/httpt.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ooni/templates/httpt.py b/ooni/templates/httpt.py
index a753955..3702e86 100644
--- a/ooni/templates/httpt.py
+++ b/ooni/templates/httpt.py
@@ -136,9 +136,9 @@ class HTTPTest(NetTestCase):
if response:
request_response['response'] = {
'headers': list(response.headers.getAllRawHeaders()),
- 'body': response_body if self.localOptions.get('withoutbody',1) == 0 else '',
+ 'body': response_body if self.localOptions.get('withoutbody', 0) == 0 else '',
'code': response.code
- }
+ }
if failure_string:
request_response['failure'] = failure_string
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits