mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-15 20:29:04 +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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user