You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rg2011
changed the title
Should support both SPACE and HTAB as whitespace
Should support both SPACE and HTAB as whitespace in Content-Type
Jan 28, 2024
Currently,
type-is
fails to match the media-type of a request when the content-type header includes tabs. Minimal reproduction:The script above works when the content type includes parameters, and spaces:
But fails when it includes tabs:
My understanding of RFC 9110 is that horizontal tabs should be considered valid whitespace in a content-type header, so type-is shoudn't fail in this case. According to https://www.rfc-editor.org/rfc/rfc9110#field.content-type:
And section 5.6.6 defines the semicolon-delimited parameters as:
Where
OWS
is defined in section 5.6.3 as:The text was updated successfully, but these errors were encountered: