diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2016-02-08 00:45:19 +0100 |
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-08 00:45:19 +0100 |
| commit | 370a0f91c19dedb32e08b6eb0852223de85cb740 (patch) | |
| tree | c5c6cf6d7c42118753325589949340e7f900270a | |
| parent | c8d2876f2340cd751f81b0c187dd0e97c97447cc (diff) | |
| download | mitmproxy-370a0f91c19dedb32e08b6eb0852223de85cb740.tar.gz mitmproxy-370a0f91c19dedb32e08b6eb0852223de85cb740.tar.bz2 mitmproxy-370a0f91c19dedb32e08b6eb0852223de85cb740.zip | |
http2: fix http_version
| -rw-r--r-- | libmproxy/protocol/http2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py index de068836..8ccc209a 100644 --- a/libmproxy/protocol/http2.py +++ b/libmproxy/protocol/http2.py @@ -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, |
