From 9682f955b5808585429e5cf64a6096ceac445999 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Fri, 6 Feb 2015 21:13:57 +0100 Subject: [PATCH] Handle HTTP/2 responses https://github.com/jakubroztocil/httpie-http2/issues/1#issuecomment-73301801 --- httpie/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/models.py b/httpie/models.py index d7c5414f..20619a7b 100644 --- a/httpie/models.py +++ b/httpie/models.py @@ -52,7 +52,7 @@ class HTTPResponse(HTTPMessage): @property def headers(self): original = self._orig.raw._original_response - version = {9: '0.9', 10: '1.0', 11: '1.1'}[original.version] + version = {9: '0.9', 10: '1.0', 11: '1.1', 20: '2.0'}[original.version] status_line = 'HTTP/{version} {status} {reason}'.format( version=version, status=original.status,