Skip to content

fix(cli): preserve repeated HTTP headers - #17

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
xudongWu2022:fix/repeated-http-headers
Aug 7, 2026
Merged

fix(cli): preserve repeated HTTP headers#17
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
xudongWu2022:fix/repeated-http-headers

Conversation

@xudongWu2022

Copy link
Copy Markdown
Contributor

Closes #3

Summary:

  • accumulate repeated --header values
  • preserve last-wins behavior for other flags
  • add focused CLI parser regression tests

Verification:

  • npm test
  • npm run lint

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Welcome, @xudongWu2022, and thanks for your first pull request to MCP-audit.

A quick look at CONTRIBUTING.md covers how things are set up and run here.

I'll review this shortly. Ask anything in the thread if something is unclear.

@royalpinto007
royalpinto007 merged commit becc528 into AgentPostmortem:main Aug 7, 2026
11 checks passed
@royalpinto007

Copy link
Copy Markdown
Collaborator

Merged, thanks @xudongWu2022. Accumulating only --header while leaving every other flag last-wins is the right call, and the test that asserts --config still overwrites is the one that stops this regressing later. The colons-in-values case was a good catch too. Verified locally: 50 tests, lint and typecheck clean.

If the project is useful to you, a star helps more people find it.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Nice work @xudongWu2022, this is merged.

Genuinely helpful change for MCP-audit.

If this project helps you out, a star helps others find it too.

Happy to see more from you whenever you have the time.

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.

Bug: --header is documented as repeatable but only the last one is sent

2 participants