Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beab72a commit 1035ee9Copy full SHA for 1035ee9
1 file changed
lib/request/httpshandler.py
@@ -62,3 +62,11 @@ def create_sock():
62
class HTTPSHandler(urllib2.HTTPSHandler):
63
def https_open(self, req):
64
return self.do_open(HTTPSConnection if ssl else httplib.HTTPSConnection, req)
65
+
66
+# Bug fix (http://bugs.python.org/issue17849)
67
68
+def _(self, *args):
69
+ return self._readline()
70
71
+httplib.LineAndFileWrapper._readline = httplib.LineAndFileWrapper.readline
72
+httplib.LineAndFileWrapper.readline = _
0 commit comments