Update for an Issue #431

This commit is contained in:
Miroslav Stampar
2014-11-21 10:31:55 +01:00
parent cf2d5fd453
commit 1fc4d0e3c4
2 changed files with 3 additions and 14 deletions

View File

@@ -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()