http_proto icon indicating copy to clipboard operation
http_proto copied to clipboard

Parser must replace obs-fold with SP

Open cmazakas opened this issue 2 years ago • 0 comments

https://datatracker.ietf.org/doc/html/rfc9112#section-5.2

rfc9112 states:

A server that receives an obs-fold in a request message that is not within a "message/http" container MUST either reject the message by sending a 400 (Bad Request), preferably with a representation explaining that obsolete line folding is unacceptable, or replace each received obs-fold with one or more SP octets prior to interpreting the field value or forwarding the message downstream.

Our parser must adhere to this. Our implementation will opt into replacing the characters with a SP.

cmazakas avatar Jan 18 '24 22:01 cmazakas