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

otlp receiver checks the whole value of content-type http header matches. It should check only the media-type part of the header #7452

Closed
shahrajesh2006 opened this issue Mar 29, 2023 · 2 comments · Fixed by #7451
Labels
bug Something isn't working

Comments

@shahrajesh2006
Copy link

Describe the bug
when the http header content-type value is "application/json;v=1" or "application/json; charset=utf-8"
receiver throws below error
"415 unsupported media type, supported: [application/json, application/x-protobuf"

Steps to reproduce
send http header content-type value "application/json;v=1"

What did you expect to see?
successful http 200 response

What did you see instead?
"415 unsupported media type, supported: [application/json, application/x-protobuf"

What version did you use?
Version: latest

What config did you use?
Config: (e.g. the yaml config file)

Environment
OS: Amazon Linux
Compiler(if manually compiled): (e.g., "go 14.2")

Additional context
Add any other context about the problem here.

@atoulme
Copy link
Contributor

atoulme commented Apr 13, 2023

@macno is working on a fix. I'll try to assign to him.

@macno
Copy link
Contributor

macno commented Apr 13, 2023

Yep, PR #7451 should be ready to be merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants