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

Lowercase HTTP headers are rejected #1027

Closed
cold01water opened this issue Feb 8, 2023 · 1 comment
Closed

Lowercase HTTP headers are rejected #1027

cold01water opened this issue Feb 8, 2023 · 1 comment

Comments

@cold01water
Copy link

cold01water commented Feb 8, 2023

Describe the bug
Lowercase HTTP headers are rejected.

To Reproduce
Lowercase Content-Type gives an error.

curl -v -X POST -H "content-type: application/x-ndjson" localhost:9308/bulk  -d '{json data}'  
{"error":"Content-Type must be set"}  

Expected behavior
HTTP headers should not be case sensitive

I'm using the curl example right now, but there are cases where it doesn't work when sending data from other tools.
It seems correct that the RFC definition is also case-insensitive.

Describe the environment:
manticore-server-5.0.2_221020.dbbf48ff3-1.el9.x86_64

@githubmanticore
Copy link
Contributor

➤ Stan commented:

should be fixed fixed at 17c6c9e the dev branch and fresh packages from the dev repo

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

No branches or pull requests

2 participants