#26746: Accept-Language header parsing incorrectly transforms q=0 into q=1
----------------------------+--------------------
     Reporter:  vytisb      |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Utilities   |    Version:  master
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+--------------------
 Given an Accept-Language header `en;q=0`, `parse_accept_lang_header`
 returns `[('en', 1.0)]`, which makes `en` the most preferable language in
 this case.
 According to [https://tools.ietf.org/html/rfc7231#section-5.3.1 RFC 7231],
 this should not happen.

 Also interesting that we have
 
[https://github.com/django/django/blob/bb7bb379e8cd91a91336946829519d64e919a1d2/tests/i18n/tests.py#L1318
 a test for this behavior].

--
Ticket URL: <https://code.djangoproject.com/ticket/26746>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.a570cdc4d1e229e890c0e54c0aee9b50%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to