Jakub Roztocil 2015-02-06 21:13:57 +01:00
parent 0d21ff022e
commit 9682f955b5

View File

@ -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,