Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72f3185

Browse files
committed
Fixes #1878
1 parent 03be9f9 commit 72f3185

3 files changed

Lines changed: 356 additions & 180 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.32"
22+
VERSION = "1.0.5.33"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/request/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ def getPage(**kwargs):
373373
if boundary:
374374
headers[HTTP_HEADER.CONTENT_TYPE] = "%s; boundary=%s" % (headers[HTTP_HEADER.CONTENT_TYPE], boundary)
375375

376+
if conf.keepAlive:
377+
headers[HTTP_HEADER.CONNECTION] = "keep-alive"
378+
376379
# Reset header values to original in case of provided request file
377380
if target and conf.requestFile:
378381
headers = OrderedDict(conf.httpHeaders)

0 commit comments

Comments
 (0)