Skip to content

Comments

Or/bearer ci#2387

Draft
olirice wants to merge 2 commits intomasterfrom
or/bearer_ci
Draft

Or/bearer ci#2387
olirice wants to merge 2 commits intomasterfrom
or/bearer_ci

Conversation

@olirice
Copy link
Contributor

@olirice olirice commented Feb 23, 2026

fix: case-insensitive Bearer token scheme matching

bearerRegexp only accepted Bearer and bearer
RFC 7235 §2.1 requires auth scheme names to be case-insensitive.

Changed the regex to use the (?i) flag so all capitalizations (e.g. BEARER) are accepted.

Test plan

  • Added TestExtractBearerTokenCaseInsensitive covering Bearer, bearer, BEARER, bEaReR, BeArEr

RFC 7235 §2.1 requires HTTP auth scheme names to be case-insensitive.
The current regex only accepts "Bearer" and "bearer", rejecting
spec-compliant variants like "BEARER".
Change bearerRegexp to use (?i) flag so all capitalizations of "bearer"
are accepted, as required by the HTTP authentication framework spec.
@coderabbitai
Copy link

coderabbitai bot commented Feb 23, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant