This commit is contained in:
Miroslav Stampar
2015-07-26 16:18:41 +02:00
parent e7af081447
commit b0bc3149f9
2 changed files with 9 additions and 1 deletions

View File

@@ -1685,6 +1685,13 @@ def _cleanupOptions():
threadData = getCurrentThreadData()
threadData.reset()
def _dirtyPatches():
"""
Place for "dirty" Python related patches
"""
httplib._MAXLINE = 1 * 1024 * 1024 # to accept overly long result lines (e.g. SQLi results in HTTP header responses)
def _purgeOutput():
"""
Safely removes (purges) output directory.
@@ -2469,6 +2476,7 @@ def init():
_saveCmdline()
_setRequestFromFile()
_cleanupOptions()
_dirtyPatches()
_purgeOutput()
_checkDependencies()
_createTemporaryDirectory()