-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
characters allowed in field values #815
Comments
It would presumably be more accurate to say that "HPACK allows", right? |
HPACK also allows encoding a field line with an empty name. I'm not sure this needs to be mentioned explicitly or not. |
Well, that's consistent with HTTP/1.1 :-) |
I hate having to do this, but what is possible and what is permissible need to be more clearly separated. |
I'm going to tag this as editorial: the possible/permissible split is clearly editorial. And we've decided to depend on the core docs, and whether or not it was clear before what was allowed or not, this is now very crisp in the core semantics. I want to wait until we get #811 in before doing this though. |
Discussed in the context of leading and trailing whitespace in -semantics. I think that we should be clearer here about a few things:
That makes this non-editorial, I think. |
This encodes the conclusions from interim discussions: 1. CR, LF, and NUL cannot appear anywhere in field names or values. 2. SP and HTAB cannot appear at the start or end of field names or values. 3. COLON cannot appear anywhere in a field name, except for the colon at the start of a pseudo-header field name. The strong requirements about validating fields according to ABNF has been replaced. The text is clearer about how the pieces fit together: it is HPACK that allows any octet, whereas HTTP/2 makes certain choices invalid. Closes httpwg#815.
Improve on httpwg#846 that fixes for httpwg#815 by adding extra clarity: + The validation for uppercase characters is no longer listed separately + It is clearly stated that violations of the full HTTP ABNF field definition MAY be treated as *Malformed*
The validation for uppercase characters is no longer listed separately, but instead included with the minimal validation.
Factored out non controversial change to httpwg#864
Improve on fix for #815 for lowercase validation
https://tools.ietf.org/html/rfc7540#section-10.3:
There are multiple issues here:
The text was updated successfully, but these errors were encountered: