[tor-commits] [ooni-probe/master] hotfix: fix bug that lead to body not being included

art at torproject.org art at torproject.org
Fri Apr 29 09:42:24 UTC 2016


commit 3a4d9ef5482f6af884a23a05b9548e816f3bdc18
Author: Arturo Filastò <arturo at filasto.net>
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
 





More information about the tor-commits mailing list