Skip to content

Refactor: Simplify Basic Authentication regex#61

Closed
Ayoub-Mabrouk wants to merge 1 commit into
jshttp:masterfrom
Ayoub-Mabrouk:chore/credentials-regexp
Closed

Refactor: Simplify Basic Authentication regex#61
Ayoub-Mabrouk wants to merge 1 commit into
jshttp:masterfrom
Ayoub-Mabrouk:chore/credentials-regexp

Conversation

@Ayoub-Mabrouk
Copy link
Copy Markdown

  • Changed the regex for matching Basic Authentication credentials to use a case-insensitive flag.
  • Replaced explicit case handling for Basic with a single lowercase basic and the /i flag for improved readability.

- Changed the regex for matching Basic Authentication credentials to use a case-insensitive flag.
- Replaced explicit case handling for Basic with a single lowercase basic and the /i flag for improved readability.
@blakeembrey
Copy link
Copy Markdown
Member

Thanks for the PR but I don't think this change is necessary right now. I did a benchmark and it was somehow worse (not what I expected).

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.

2 participants