File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def is_informational_response(headers):
121
121
return False
122
122
123
123
# This isn't the status header, bail.
124
- if n != b'status' :
124
+ if n != b': status' :
125
125
continue
126
126
127
127
# If the first digit is a 1, we've got informational headers.
@@ -376,7 +376,7 @@ def _check_pseudo_header_field_acceptability(pseudo_headers,
376
376
# Relevant RFC section: RFC 7540 § 8.1.2.4
377
377
# https://tools.ietf.org/html/rfc7540#section-8.1.2.4
378
378
if hdr_validation_flags .is_response_header :
379
- _assert_header_in_set (b'status' , pseudo_headers )
379
+ _assert_header_in_set (b': status' , pseudo_headers )
380
380
invalid_response_headers = pseudo_headers & _REQUEST_ONLY_HEADERS
381
381
if invalid_response_headers :
382
382
raise ProtocolError (
You can’t perform that action at this time.
0 commit comments