Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Case-Sensitive HTTP Headers in Karate Mock Server #2654

Open
srmppn opened this issue Feb 17, 2025 · 0 comments
Open

Support for Case-Sensitive HTTP Headers in Karate Mock Server #2654

srmppn opened this issue Feb 17, 2025 · 0 comments
Assignees
Milestone

Comments

@srmppn
Copy link

srmppn commented Feb 17, 2025

Description

Karate Mock Server currently converts all headers to lowercase due to Armeria’s HTTP/2 standards. This causes issues when integrating with legacy systems that require case-sensitive HTTP/1 headers (e.g., X-Special-Header).

Armeria provides an interface to map HTTP/2 headers to HTTP/1, but manual mapping is required.

Proposed Solution

Add support for HTTP/1 header formats by using original headers from the Karate Scenario as references for mapping. This avoids manual configuration and ensures headers are preserved as expected. The feature should be able to disabled or enabled via server option eg. --use-original-header or --keep-original-headers as not everyone may need to integrate their system with HTTP/1 headers standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants