mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Py3: Pass bytes to http Request and Response
This commit is contained in:
parent
2ff5c789df
commit
e187358e97
@ -190,7 +190,7 @@ class Response(_HTTP2Message):
|
||||
resp = http.Response(
|
||||
(2, 0),
|
||||
self.status_code.string(),
|
||||
'',
|
||||
b'',
|
||||
headers,
|
||||
body,
|
||||
)
|
||||
@ -271,11 +271,11 @@ class Request(_HTTP2Message):
|
||||
body = body.string()
|
||||
|
||||
req = http.Request(
|
||||
'',
|
||||
b'',
|
||||
self.method.string(),
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
b'',
|
||||
b'',
|
||||
b'',
|
||||
path,
|
||||
(2, 0),
|
||||
headers,
|
||||
|
Loading…
Reference in New Issue
Block a user