mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Patch for an Issue #442
This commit is contained in:
@@ -62,3 +62,11 @@ class HTTPSConnection(httplib.HTTPSConnection):
|
|||||||
class HTTPSHandler(urllib2.HTTPSHandler):
|
class HTTPSHandler(urllib2.HTTPSHandler):
|
||||||
def https_open(self, req):
|
def https_open(self, req):
|
||||||
return self.do_open(HTTPSConnection if ssl else httplib.HTTPSConnection, req)
|
return self.do_open(HTTPSConnection if ssl else httplib.HTTPSConnection, req)
|
||||||
|
|
||||||
|
# Bug fix (http://bugs.python.org/issue17849)
|
||||||
|
|
||||||
|
def _(self, *args):
|
||||||
|
return self._readline()
|
||||||
|
|
||||||
|
httplib.LineAndFileWrapper._readline = httplib.LineAndFileWrapper.readline
|
||||||
|
httplib.LineAndFileWrapper.readline = _
|
||||||
|
|||||||
Reference in New Issue
Block a user