forked from extern/httpie-cli
parent
bd50a6adb1
commit
0e6875bf83
@ -52,8 +52,9 @@ class HTTPResponse(HTTPMessage):
|
|||||||
@property
|
@property
|
||||||
def headers(self):
|
def headers(self):
|
||||||
original = self._orig.raw._original_response
|
original = self._orig.raw._original_response
|
||||||
|
version = {9: '0.9', 10: '1.0', 11: '1.1'}[original.version]
|
||||||
status_line = 'HTTP/{version} {status} {reason}'.format(
|
status_line = 'HTTP/{version} {status} {reason}'.format(
|
||||||
version='.'.join(str(original.version)),
|
version=version,
|
||||||
status=original.status,
|
status=original.status,
|
||||||
reason=original.reason
|
reason=original.reason
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user