Closed big-r81 closed 2 years ago
leading and trailing OWS should, imo, be removed by mochiweb. Internal whitespace should not be.
Ok, thx, then I update my expected result (to be RFC compliant) to
{"X-Auth-Roles","test, test2,test3, test4, test5 , test6"}
Hi,
send a example request with the following header like this:
The header is inserted and has the following data:
RFC 7230 says:
So, I think the trailing WS from the above example should be defnitly removed before insertion and reading the RFC the ws between the values of the header field should be trimmed with only on ws.
Result should be:
On insertion (
default/3
,enter/3
,insert/3
) inmochiweb_headers.erl
, nothing of the input is trimmed.