mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Fixes #4010
This commit is contained in:
@@ -5,6 +5,7 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
|
||||
See the file 'LICENSE' for copying permission
|
||||
"""
|
||||
|
||||
from lib.core.convert import getText
|
||||
from thirdparty.six.moves import urllib as _urllib
|
||||
|
||||
class MethodRequest(_urllib.request.Request):
|
||||
@@ -13,8 +14,7 @@ class MethodRequest(_urllib.request.Request):
|
||||
"""
|
||||
|
||||
def set_method(self, method):
|
||||
self.method = method.upper()
|
||||
print("%s,%s" % (type(self.method), type(self.data)))
|
||||
self.method = getText(method.upper()) # Dirty hack for Python3 (may it rot in hell!)
|
||||
|
||||
def get_method(self):
|
||||
return getattr(self, 'method', _urllib.request.Request.get_method(self))
|
||||
|
||||
Reference in New Issue
Block a user