We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cff5c3f commit a3dd27bCopy full SHA for a3dd27b
hyper/http11/response.py
@@ -53,7 +53,7 @@ def __init__(self, code, reason, headers, sock, connection=None,
53
self._expect_close = True
54
55
# The expected length of the body.
56
- if request_method.upper() != b'HEAD':
+ if request_method != b'HEAD':
57
try:
58
self._length = int(self.headers[b'content-length'][0])
59
except KeyError:
0 commit comments