From ead9b0ab8c399feeb25e0851f2dadf654acf51f5 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 8 Feb 2016 15:09:25 +0100 Subject: fix http version string --- netlib/http/http2/connections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'netlib') diff --git a/netlib/http/http2/connections.py b/netlib/http/http2/connections.py index 5e877286..52fa7193 100644 --- a/netlib/http/http2/connections.py +++ b/netlib/http/http2/connections.py @@ -129,7 +129,7 @@ class HTTP2Protocol(object): host.encode('ascii'), port, path.encode('ascii'), - b'2.0', + b"HTTP/2.0", headers, body, timestamp_start, @@ -171,7 +171,7 @@ class HTTP2Protocol(object): timestamp_end = None response = Response( - b'2.0', + b"HTTP/2.0", int(headers.get(':status', 502)), b'', headers, -- cgit v1.2.3