Skip to content

Commit 913b893

Browse files
committed
fix bad refactor
1 parent 027e04c commit 913b893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/h2/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)