Minor update

This commit is contained in:
Miroslav Stampar
2019-11-13 11:17:32 +01:00
parent e6edecb396
commit 60c7fb3e03
4 changed files with 6 additions and 1 deletions

View File

@@ -14,6 +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)))
def get_method(self):
return getattr(self, 'method', _urllib.request.Request.get_method(self))