[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] [bugfix] Critical bug that sometimes lead to incorrect body content



commit 0bfb58cd9d2647e6defa3bcdf0dbd7a9e2e16189
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
Date:   Thu Apr 14 22:44:47 2016 +0200

    [bugfix] Critical bug that sometimes lead to incorrect body content
---
 ooni/utils/trueheaders.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ooni/utils/trueheaders.py b/ooni/utils/trueheaders.py
index b7671b5..d5aa206 100644
--- a/ooni/utils/trueheaders.py
+++ b/ooni/utils/trueheaders.py
@@ -103,7 +103,7 @@ class HTTPClientParser(_newclient.HTTPClientParser):
         self._partialHeader = None
 
     def headerReceived(self, name, value):
-        if self.isConnectionControlHeader(name):
+        if self.isConnectionControlHeader(name.lower()):
             headers = self.connHeaders
         else:
             headers = self.headers



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits