Skip to content

fix add custom headers error#6268

Merged
Aias00 merged 4 commits intoapache:masterfrom
MaMengzhen:bugfix/fix-add-custom-headers-error
Jan 16, 2026
Merged

fix add custom headers error#6268
Aias00 merged 4 commits intoapache:masterfrom
MaMengzhen:bugfix/fix-add-custom-headers-error

Conversation

@MaMengzhen
Copy link
Copy Markdown
Contributor

@MaMengzhen MaMengzhen commented Dec 30, 2025

In the addCustoms Header method, when obtaining the value of the header, only the basic type is checked. If a string type check is added, when testing the MCP tool, except for string type, numerical and Boolean basic types cannot be replaced with the value of the header.I removed the value that can only replace headers of type string. #6267

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Copy link
Copy Markdown
Contributor

@Aias00 Aias00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aias00 Aias00 merged commit 3c29cc3 into apache:master Jan 16, 2026
42 checks passed
yu199195 pushed a commit to yu199195/shenyu that referenced this pull request Feb 6, 2026
Co-authored-by: aias00 <liuhongyu@apache.org>
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