-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Server Error - Respect the Accept header in responses #3246
Comments
There appear to be three distinct yet related cases, only two of which Gunicorn has full control of:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a timeout occurs, gunicorn kill the worker (good) and answers the client (good) with a fixed error page in HTML, regardless of the
Accept
header sent by the client (bad).I would like that this header would be taken into account when returning the error page, so that a client can expect the response to be in his wanted type.
For example, when a client requests XML, he gets XML, when he requests HTML, he gets HTML, and when he requests JSON, he gets JSON.
Related to #2281
The text was updated successfully, but these errors were encountered: