Skip to content

Allow missing Content-Type header #1467

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

Open
mxk opened this issue May 30, 2025 · 0 comments
Open

Allow missing Content-Type header #1467

mxk opened this issue May 30, 2025 · 0 comments
Labels
enhancement New feature or request openapi-features OpenAPI features support issues

Comments

@mxk
Copy link

mxk commented May 30, 2025

I'm working with several APIs where the server does not send a Content-Type header, especially for error responses. This forces me to use a custom http.Client implementation that injects this header before the response is parsed. I'm wondering if it would make sense to do this by default when only one Content-Type is defined for a response?

@mxk mxk added enhancement New feature or request openapi-features OpenAPI features support issues labels May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi-features OpenAPI features support issues
Projects
None yet
Development

No branches or pull requests

1 participant