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):
121121 return False
122122
123123 # This isn't the status header, bail.
124- if n != b'status' :
124+ if n != b': status' :
125125 continue
126126
127127 # If the first digit is a 1, we've got informational headers.
@@ -376,7 +376,7 @@ def _check_pseudo_header_field_acceptability(pseudo_headers,
376376 # Relevant RFC section: RFC 7540 § 8.1.2.4
377377 # https://tools.ietf.org/html/rfc7540#section-8.1.2.4
378378 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 )
380380 invalid_response_headers = pseudo_headers & _REQUEST_ONLY_HEADERS
381381 if invalid_response_headers :
382382 raise ProtocolError (
You can’t perform that action at this time.
0 commit comments