Skip to content

Conversation

ori-shalom
Copy link
Contributor

@ori-shalom ori-shalom commented Aug 10, 2025

The logic for splitting header arguments into the header name and header value fails to account for the usual space in how headers are usually written.

For example:
The args --header 'Authorization: Bearer abc123' will be parsed as:

  • Authorization header name
  • Bearer abc123 header value with an extra space!

The extra space in the header value might cause an authentication error in some cases.

It's expected that the header parsing will ignore these spaces between the : sign and the actual header value.

Copy link

pkg-pr-new bot commented Aug 27, 2025

Open in StackBlitz

npx https://pkg.pr.new/mcp-remote@139

commit: 70f33ed

@geelen
Copy link
Owner

geelen commented Aug 27, 2025

Good catch!

@geelen geelen merged commit 141baee into geelen:main Aug 27, 2025
2 of 3 checks passed
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