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

Skip to content

Commit 06296bd

Browse files
committed
Fixes #1743
1 parent 0f6e529 commit 06296bd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/settings.py

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

2222
# sqlmap version and site
23-
VERSION = "1.0.0.13"
23+
VERSION = "1.0.0.14"
2424
REVISION = getRevisionNumber()
2525
STABLE = VERSION.count('.') <= 2
2626
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/request/connect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,10 @@ def getPage(**kwargs):
391391

392392
for key, value in headers.items():
393393
del headers[key]
394-
headers[unicodeencode(key, kb.pageEncoding)] = unicodeencode(value, kb.pageEncoding)
394+
value = unicodeencode(value, kb.pageEncoding)
395395
for char in (r"\r", r"\n"):
396396
value = re.sub(r"(%s)([^ \t])" % char, r"\g<1>\t\g<2>", value)
397+
headers[unicodeencode(key, kb.pageEncoding)] = value.strip("\r\n")
397398

398399
url = unicodeencode(url)
399400
post = unicodeencode(post)

0 commit comments

Comments
 (0)