mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
Added rawmode support for RequestRunner.
This commit is contained in:
parent
0d1e50abab
commit
f470221989
@ -36,6 +36,9 @@ class RequestRunner:
|
|||||||
self.server_selector.hook_prerequest()
|
self.server_selector.hook_prerequest()
|
||||||
try:
|
try:
|
||||||
req = http_handler.run()
|
req = http_handler.run()
|
||||||
|
if query.rawmode:
|
||||||
|
done = query.is_done(req.status_code, req.content)
|
||||||
|
else:
|
||||||
req.encoding = "utf-8"
|
req.encoding = "utf-8"
|
||||||
done = query.is_done(req.status_code, req.text)
|
done = query.is_done(req.status_code, req.text)
|
||||||
self.server_selector.hook_postrequest(done)
|
self.server_selector.hook_postrequest(done)
|
||||||
|
@ -5,6 +5,7 @@ from . import tclresult
|
|||||||
class TclRequest:
|
class TclRequest:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.uri = ""
|
self.uri = ""
|
||||||
|
self.rawmode = False
|
||||||
self.response = None
|
self.response = None
|
||||||
self.result = None
|
self.result = None
|
||||||
self.error = None
|
self.error = None
|
||||||
|
Loading…
Reference in New Issue
Block a user