BridgeDB displays "localized page" even if "en" has the highest priority
BridgeDB does not correctly handle an Accept-Language that asks for English first, and then says "other languages are OK". Take this as an example:
$ curl -H 'Accept-Language: en,zh-TW;q=0.8' https://bridges.torproject.org/ | grep icon-envelope
<i class="icon icon-large icon-envelope"><span id="footer-contact"> 聯絡資訊</span></i></a>
In this example, English has a higher priority over zh-TW, but BridgeDB still shows a zh-TW page, presumably because there is not a specific "localization" for English.
(Here is the English page:
$ curl https://bridges.torproject.org/ | grep icon-envelope
<i class="icon icon-large icon-envelope"><span id="footer-contact"> Contact</span></i></a>
)
Trac:
Username: Artoria2e5