mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Patch for an Issue #442
This commit is contained in:
parent
beab72a180
commit
1035ee9c3d
|
@ -62,3 +62,11 @@ class HTTPSConnection(httplib.HTTPSConnection):
|
|||
class HTTPSHandler(urllib2.HTTPSHandler):
|
||||
def https_open(self, 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 = _
|
||||
|
|
Loading…
Reference in New Issue
Block a user