mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-09 17:51:33 +00:00
major bug fix for --keep-alive option in multithreading mode (that 'shitty' _headers = {} made a one shared object for all connection objects)
This commit is contained in:
parent
36ef8ca575
commit
dc50543ea4
2 changed files with 3 additions and 6 deletions
|
|
@ -295,10 +295,10 @@ class HTTPResponse(httplib.HTTPResponse):
|
|||
class HTTPConnection(httplib.HTTPConnection):
|
||||
# use the modified response class
|
||||
response_class = HTTPResponse
|
||||
_headers = {}
|
||||
_headers = None
|
||||
|
||||
def clearheaders(self):
|
||||
self._headers.clear()
|
||||
self._headers = {}
|
||||
|
||||
def putheader(self, header, value):
|
||||
"""Send a request header line to the server.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue