mirror of
https://github.com/httpie/cli.git
synced 2025-01-15 18:18:46 +01:00
Handle HTTP/2 responses
https://github.com/jakubroztocil/httpie-http2/issues/1#issuecomment-73301801
This commit is contained in:
parent
0d21ff022e
commit
9682f955b5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user