mirror of
https://github.com/owncast/owncast.git
synced 2024-12-21 00:35:47 +03:00
092134f3f3
The semantics of the Authorization header are defined by RFC 9110, which says: > It uses a case-insensitive token to identify the authentication scheme: Therefore, "bearer", "Bearer", and "bEARER" are equivalent. This patch fixes the parsing of the Authorization header to check for the Bearer authentication scheme case insensitively. I've modified one of the test cases to use lowercase "bearer", so there's test coverage for this. |
||
---|---|---|
.. | ||
activityPub.go | ||
auth.go | ||
caching.go | ||
cors.go | ||
headers.go | ||
pagination.go |