summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJake Howard <git@theorangeone.net>2025-05-27 17:00:29 +0100
committerNatalia <124304+nessita@users.noreply.github.com>2025-06-03 16:11:38 -0300
commit0c548e62d0166c559ca59845079c2b70730fcfe7 (patch)
tree916817a120675d7ace091d337ef8f47376a7861f /scripts
parent2bf4c5b9eaaf0a36cb0fb6c060625a5fb2fcf6c9 (diff)
[5.2.x] Fixed #36411 -- Made HttpRequest.get_preferred_type() consider media type parameters.
HttpRequest.get_preferred_type() did not account for parameters in Accept header media types (e.g., "text/vcard; version=3.0"). This caused incorrect content negotiation when multiple types differed only by parameters, reducing specificity as per RFC 7231 section 5.3.2 (https://datatracker.ietf.org/doc/html/rfc7231.html#section-5.3.2). This fix updates get_preferred_type() to treat media types with parameters as distinct, allowing more precise and standards-compliant matching. Thanks to magicfelix for the report, and to David Sanders and Sarah Boyce for the reviews. Backport of c075508b4de8edf9db553b409f8a8ed2f26ecead from main.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions