mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 03:07:18 +00:00
http2: fix http_version
This commit is contained in:
parent
c8d2876f23
commit
370a0f91c1
1 changed files with 2 additions and 2 deletions
|
|
@ -323,7 +323,7 @@ class Http2SingleStreamLayer(_HttpTransmissionLayer, threading.Thread):
|
|||
host,
|
||||
port,
|
||||
path,
|
||||
(2, 0),
|
||||
b"HTTP/2.0",
|
||||
self.request_headers,
|
||||
data,
|
||||
timestamp_start=self.timestamp_start,
|
||||
|
|
@ -360,7 +360,7 @@ class Http2SingleStreamLayer(_HttpTransmissionLayer, threading.Thread):
|
|||
status_code = int(self.response_headers.get(':status', 502))
|
||||
|
||||
return HTTPResponse(
|
||||
http_version=(2, 0),
|
||||
http_version=b"HTTP/2.0",
|
||||
status_code=status_code,
|
||||
reason='',
|
||||
headers=self.response_headers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue