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

Content-Type rejected: `` #9018

Open
metalfork opened this issue Jun 27, 2024 · 2 comments
Open

Content-Type rejected: `` #9018

metalfork opened this issue Jun 27, 2024 · 2 comments

Comments

@metalfork
Copy link

if (header->val.len == 16 &&
strncasecmp(header->val.data, "application/json", 16) == 0) {
type = HTTP_CONTENT_JSON;
}

Can we update the conditional here to allow application/json;charset=utf-8 as the Content-Type? Currently the conditional just checks for application/json (length 16) so the encoding value causes a failure. See this in AWS Fargate at the moment with Serilog and the dotnet Http sink. Ref

@patrick-stephens
Copy link
Contributor

Can you submit a PR?

@metalfork
Copy link
Author

Can you submit a PR?

@patrick-stephens submitted #9023

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