Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit a3dd27b

Browse files
committed
fix some error
1 parent cff5c3f commit a3dd27b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyper/http11/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, code, reason, headers, sock, connection=None,
5353
self._expect_close = True
5454

5555
# The expected length of the body.
56-
if request_method.upper() != b'HEAD':
56+
if request_method != b'HEAD':
5757
try:
5858
self._length = int(self.headers[b'content-length'][0])
5959
except KeyError:

0 commit comments

Comments
 (0)