#36447: HttpRequest.get_preferred_type misorders types when more specific
accepted
types have lower q
-------------------------------------+-------------------------------------
Reporter: Anders Kaseorg | Owner: Jake
| Howard
Type: Bug | Status: closed
Component: HTTP handling | Version: 5.2
Severity: Release blocker | Resolution: fixed
Keywords: preferred media | Triage Stage: Ready for
type | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):
In [changeset:"4de4edf2c05cc80c514c989db480f2fe23ad5ee2" 4de4edf]:
{{{#!CommitTicketReference repository=""
revision="4de4edf2c05cc80c514c989db480f2fe23ad5ee2"
[5.2.x] Fixed #36447 -- Selected preferred media type based on quality.
When matching which entry in the `Accept` header should be used for
a given media type, the specificity matters. However once those are
resolved, only the quality matters when selecting preference.
Regression in c075508b4de8edf9db553b409f8a8ed2f26ecead.
Thank you to Anders Kaseorg for the report.
Backport of 12c1557060fc94fe5e1fbddc4578a4e29d38f77c from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36447#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019777a3bdf0-ec0bf399-f612-4b71-88c1-3958894c9d4c-000000%40eu-central-1.amazonses.com.