Patch for an Issue #246

This commit is contained in:
Miroslav Stampar
2012-11-13 10:21:11 +01:00
parent f305dde413
commit a52dbc575b
4 changed files with 10 additions and 10 deletions

View File

@@ -1110,7 +1110,7 @@ def __setHTTPMethod():
Check and set the HTTP method to perform HTTP requests through.
"""
conf.method = HTTPMETHOD.POST if conf.data else HTTPMETHOD.GET
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)