|
|
|
|
|
by mytailorisrich
1969 days ago
|
|
RFC 2616 defined header fields as OCTETs, and regarding this change RFC 7230 states: > Non-US-ASCII content in header fields and the reason phrase has been obsoleted and made opaque (the TEXT rule was removed). RFC 2616: field-value = ( field-content | LWS ) field-content = <the OCTETs making up the field-valu and consisting of either TEXT or combinations of token, separators, and quoted-string> Hence to me fields must be treated as opaque data for backward compatibility and robustness. If anything, existing applications that are compliant with RFC 2616 already do that, right? ;) |
|
So, for instance, where 2616 states: Reason-Phrase = <TEXT, excluding CR, LF> And 7230 has: reason-phrase = ( HTAB / SP / VCHAR / obs-text )
It is making sure that any application that conforms to 2616 still conforms to 7230 by not making it illegal (MUST) to parse obs-text... Just something you SHOULD not not do. They are simply making it so any new header added is defined as SP / VCHAR only (quoted, possibly).