mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Update for an Issue #431
This commit is contained in:
parent
cf2d5fd453
commit
1fc4d0e3c4
2 changed files with 3 additions and 14 deletions
|
|
@ -1252,16 +1252,6 @@ def _setHTTPAuthentication():
|
|||
checkFile(key_file)
|
||||
authHandler = HTTPSPKIAuthHandler(key_file)
|
||||
|
||||
def _setHTTPMethod():
|
||||
"""
|
||||
Check and set the HTTP method to perform HTTP requests through.
|
||||
"""
|
||||
|
||||
conf.method = HTTPMETHOD.POST if conf.data is not None else HTTPMETHOD.GET
|
||||
|
||||
debugMsg = "setting the HTTP method to %s" % conf.method
|
||||
logger.debug(debugMsg)
|
||||
|
||||
def _setHTTPExtraHeaders():
|
||||
if conf.headers:
|
||||
debugMsg = "setting extra HTTP headers"
|
||||
|
|
@ -2330,7 +2320,6 @@ def init():
|
|||
_setHTTPCookies()
|
||||
_setHTTPReferer()
|
||||
_setHTTPUserAgent()
|
||||
_setHTTPMethod()
|
||||
_setHTTPAuthentication()
|
||||
_setHTTPProxy()
|
||||
_setDNSCache()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue