﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16322	Some mobile Accept-Language headers are not parsed	Max Arnold <lwarxx@…>	nobody	"Some mobile phones use spaces before or after semicolon in Accept-Language header. Django can't parse such headers:

{{{
""Accept-Language: en; q=1.0, *; q=0.5""
""Accept-Language: ru-ru,*; q=0.5""
}}}

{{{
>>> parse_accept_lang_header('en; q=1.0, *; q=0.5')
>>> []
}}}


More examples here: http://stackoverflow.com/questions/377864/detect-mobile-supported-languages

Another confirmation: https://www-304.ibm.com/support/docview.wss?uid=swg1PK98260&wv=1

According to RFC 2616, there should be no whitespaces, but RFC 3282 allows CFWS and also I found this proposal http://lists.w3.org/Archives/Public/ietf-http-wg/2009OctDec/0177.html where OWS is explicitly mentioned."	Bug	closed	Internationalization	1.3	Normal	fixed			Ready for checkin	1	0	0	0	1	0
