headers v0.21.3
Patch Changes
-
Improve parsing performance for
Accept,Accept-Encoding,Accept-Language,If-Match, andIf-None-Matchheaders containing long whitespace runs while preserving existing list parsing behavior. -
Recognize
ContentTypeparameter names case-insensitively while preserving media type and parameter value casing. Keep the first value when aboundaryorcharsetparameter is repeated, including when the names use different casing.Read unterminated quoted parameter values through the end of the input, honoring backslash escapes and preserving quoted whitespace without interpreting embedded delimiters as new parameters.
ContentTypefollows WHATWG quoted-string recovery:boundary="abcyieldsabc, whilenote="value; boundary=abcdoes not supply a boundary. -
Preserve subsequent
Cookiepairs when quotes span semicolon delimiters while retaining existing value decoding.Cookie#toString()encodes semicolons in values as%3B;Cookie.from()preserves that encoding, so a value such asa;bis parsed back asa%3Bb(see #11906). -
SetCookienow accepts lowercase'strict','lax', and'none'values forsameSiteand serializes them using canonical casing. -
Declare package modules as side-effect-free.