hyperium / headers

Typed HTTP Headers from hyper
https://hyper.rs
MIT License
162 stars 84 forks source link

Make authorization schemes case and whitespace insensitive #141

Closed sbihel closed 9 months ago

sbihel commented 1 year ago

Partially address #112, missing are restrictions on the shape of the actual Bearer token

sorah commented 11 months ago

I encountered an error due to the issue pointed out on this PR -- case sensitivity. auth-scheme is considered case-insensitive per RFC 9110 Section 11.1.

https://datatracker.ietf.org/doc/html/rfc9110#section-11.1

It uses a case-insensitive token to identify the authentication scheme