Skip to content

fix: send Authorization header when basicAuthPassword is empty string#53

Open
pglogowskisolidstudio wants to merge 1 commit into
mainfrom
fix/not-sending-auth-header
Open

fix: send Authorization header when basicAuthPassword is empty string#53
pglogowskisolidstudio wants to merge 1 commit into
mainfrom
fix/not-sending-auth-header

Conversation

@pglogowskisolidstudio

Copy link
Copy Markdown

Summary

  • Fixed a bug where the Authorization header was not sent when basicAuthPassword was set to an empty string
  • Changed the truthy check (&&) to an explicit !== undefined check so the header is always included when a password is configured

Test plan

  • Verify that setting basicAuthPassword to an empty string sends the Authorization header
  • Verify that omitting basicAuthPassword (undefined) still skips the header
  • Verify that non-empty passwords continue to work as before

🤖 Generated with Claude Code

The previous truthy check (`&&`) skipped the header when the password
was an empty string. Use an explicit `!== undefined` check so the
header is always sent when a password is configured.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pglogowskisolidstudio pglogowskisolidstudio force-pushed the fix/not-sending-auth-header branch from a9eab19 to 0bc7ef2 Compare May 25, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants