Skip to content

Commit 80dc67f

Browse files
committed
Patch for #5338
1 parent ca2f094 commit 80dc67f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.2.21"
23+
VERSION = "1.7.2.22"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ class _(dict):
752752

753753
responseMsg += "[#%d] (%s %s):\r\n" % (threadData.lastRequestUID, code, status)
754754

755-
if responseHeaders:
755+
if responseHeaders and getattr(responseHeaders, "headers", None):
756756
logHeaders = "".join(getUnicode(responseHeaders.headers)).strip()
757757

758758
logHTTPTraffic(requestMsg, "%s%s\r\n\r\n%s" % (responseMsg, logHeaders, (page or "")[:MAX_CONNECTION_READ_SIZE]), start, time.time())

0 commit comments

Comments
 (0)