mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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 c075508b4d.
Thank you to Anders Kaseorg for the report.
			
			
This commit is contained in:
		| @@ -9,4 +9,6 @@ Django 5.2.4 fixes several bugs in 5.2.3. | ||||
| Bugfixes | ||||
| ======== | ||||
|  | ||||
| * ... | ||||
| * Fixed a regression in Django 5.2.2 where :meth:`HttpRequest.get_preferred_type() | ||||
|   <django.http.HttpRequest.get_preferred_type>` incorrectly preferred more | ||||
|   specific media types with a lower quality (:ticket:`36447`). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user