Improve content type negotiation for 500 response
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
.
Change History
(6)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
set to Johanan Oppong Amoateng
|
Status: |
new → assigned
|
Has patch: |
set
|
Needs tests: |
set
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
In be8c9b19: