Apply wfBCP47() to HTTP response header Content-Language
authorFomafix <fomafix@googlemail.com>
Mon, 9 Nov 2015 05:43:11 +0000 (05:43 +0000)
committerFomafix <fomafix@googlemail.com>
Fri, 16 Sep 2016 15:43:27 +0000 (17:43 +0200)
commite53ff931ab17ba9e999ee550ddfdef89b172675f
tree491bb217e89686ed10ce2a09c39752f47c2f8a29
parent18f973cddad9f22072247e4dd8bbe269507d8acf
Apply wfBCP47() to HTTP response header Content-Language

See https://tools.ietf.org/html/rfc7231#section-3.1.3 for Content-Language.
This references https://tools.ietf.org/html/rfc5646 aka BCP 47.

Example:
curl -I https://crh.wikipedia.org/wiki/Ba%C5%9F_Saife | grep -i '^content-language:'
should contain
Content-language: crh-Latn
instead of
Content-language: crh-latn

Change-Id: Ice4f40911c3761c2542430935bc1898bc4e7a4d4
includes/OutputPage.php
includes/cache/HTMLFileCache.php