Skip to content

Commit

Permalink
Improve on fix for httpwg#815 for lowercase validation
Browse files Browse the repository at this point in the history
The validation for uppercase characters is no longer listed separately, but instead included with the minimal validation.
  • Loading branch information
gregw committed Jun 10, 2021
1 parent b242930 commit b169959
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ venv/
archive.json
report.xml
/lib
/.idea/
12 changes: 6 additions & 6 deletions draft-ietf-httpbis-http2bis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2587,23 +2587,23 @@
<name>HTTP Fields</name>
<t>
HTTP fields carry information as a series of field lines, which are key-value pairs. For a listing of
registered HTTP fields, see the "Hypertext Transfer Protocol (HTTP) Field Name Registry" registry maintained at <eref target="https://www.iana.org/assignments/http-fields/"/>.
registered HTTP fields, see the "Hypertext Transfer Protocol (HTTP) Field Name Registry"
registry maintained at <eref target="https://www.iana.org/assignments/http-fields/"/>.
</t>
<t>
Field names are strings of ASCII characters that are compared in a case-insensitive
fashion. Field names MUST be converted to lowercase when constructing a HTTP/2
message. A request or response containing an uppercase character ('A' to 'Z', ASCII 0x41
to 0x5a) in a field name MUST be treated as <xref target="malformed">malformed</xref>.
message.
</t>
<t>
HPACK is capable of carrying field names or values that are not valid in HTTP. Though
HPACK can carry any octet, fields are not valid in the following cases:
</t>
<ul>
<li>
A field name MUST NOT contain characters in the range 0x00-0x20 or 0x7F-0xFF (both
ranges inclusive). This limits field names to visible ASCII characters, other than
ASCII SP (0x20).
A field name MUST NOT contain characters in the ranges 0x00-0x20, 0x41-0x5A or 0x7F-0xFF
(all ranges inclusive). This limits field names to visible ASCII characters, other than
ASCII SP (0x20) and uppercase characters ('A' to 'Z', ASCII 0x41 to 0x5a).
</li>
<li>
With the exception of <xref target="PseudoHeaderFields">pseudo-header fields</xref>,
Expand Down

0 comments on commit b169959

Please sign in to comment.