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

Skip to content

Commit 77312a8

Browse files
committed
Fixes #4010
1 parent 60c7fb3 commit 77312a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/settings.py

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

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

lib/request/methodrequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
See the file 'LICENSE' for copying permission
66
"""
77

8+
from lib.core.convert import getText
89
from thirdparty.six.moves import urllib as _urllib
910

1011
class MethodRequest(_urllib.request.Request):
@@ -13,8 +14,7 @@ class MethodRequest(_urllib.request.Request):
1314
"""
1415

1516
def set_method(self, method):
16-
self.method = method.upper()
17-
print("%s,%s" % (type(self.method), type(self.data)))
17+
self.method = getText(method.upper()) # Dirty hack for Python3 (may it rot in hell!)
1818

1919
def get_method(self):
2020
return getattr(self, 'method', _urllib.request.Request.get_method(self))

0 commit comments

Comments
 (0)