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

[KeepOriginalHeaders] update document #2656

Merged
merged 4 commits into from
Feb 19, 2025

Conversation

srmppn
Copy link

@srmppn srmppn commented Feb 18, 2025

Description

Add new flag --keep-original-headers to the document.

By default, Karate mock server converts all response headers to lowercase according to HTTP/2 standard. This option allows you to retain the original header format, enabling integration with legacy systems or HTTP/1.

```
java -jar karate.jar --keep-original-headers
Copy link
Member

Choose a reason for hiding this comment

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

if this is for the mock server, probably needs the -m options and / or put this section just under the mocks section ?

@@ -225,6 +225,13 @@ If you have a custom certificate and private-key (in PEM format) you can specify
java -jar karate.jar -m my-mock.feature -p 8443 -s -c my-cert.crt -k my-key.key
```

#### Keep Original Headers
Copy link
Author

Choose a reason for hiding this comment

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

Is this correct place to put please verify 🤔

@ptrthomas ptrthomas merged commit 1e7b6c4 into karatelabs:develop Feb 19, 2025
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