#36456: Improve content type negotiation for 500 response
-------------------------------------+-------------------------------------
Reporter: Jake Howard | Type:
| Cleanup/optimization
Status: new | Component: HTTP
| handling
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
`django.views.debug.technical_500_response` supports either a HTML or
plain text output. Currently, the client will be served HTML if they
support it, even if they preferred a plain text response.
Ideally, the user would be served HTML if it is their preference of the 2,
otherwise they'd be served plain text. If for whatever reason neither are
supported, serve plain text. This can be done with
`request.get_preferred_type`.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36456>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.