зеркало из https://github.com/mozilla/pjs.git
#88363 Site with duplicate Content-Type loads with incorrect encoding
when site have multiple content-type, we should use the last one with charset specified as charset. r=yokoyama, sr=darin
This commit is contained in:
Родитель
5671916d02
Коммит
1a723b3fc4
|
@ -583,9 +583,9 @@ nsHttpResponseHead::ParseContentType(char *type)
|
|||
if (!*type)
|
||||
return;
|
||||
|
||||
// a response could have multiple content type headers... we'll honor
|
||||
// the last one.
|
||||
mContentCharset.Truncate();
|
||||
// a response could have multiple content type headers...
|
||||
// we'll honor the last one. But for charset, we will only
|
||||
// honor the last one that comes with charset.
|
||||
mContentType.Truncate();
|
||||
|
||||
// we don't care about comments (although they are invalid here)
|
||||
|
|
Загрузка…
Ссылка в новой задаче