mirror of
https://github.com/httpie/cli.git
synced 2025-01-22 03:08:59 +02:00
HTTP/2 has no minor versions.
https://github.com/jakubroztocil/httpie-http2/issues/1
This commit is contained in:
parent
a5a83c5b77
commit
3ff03524ff
@ -52,7 +52,14 @@ class HTTPResponse(HTTPMessage):
|
||||
@property
|
||||
def headers(self):
|
||||
original = self._orig.raw._original_response
|
||||
version = {9: '0.9', 10: '1.0', 11: '1.1', 20: '2.0'}[original.version]
|
||||
|
||||
version = {
|
||||
9: '0.9',
|
||||
10: '1.0',
|
||||
11: '1.1',
|
||||
20: '2',
|
||||
}[original.version]
|
||||
|
||||
status_line = 'HTTP/{version} {status} {reason}'.format(
|
||||
version=version,
|
||||
status=original.status,
|
||||
|
Loading…
x
Reference in New Issue
Block a user