#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:
shanjian%netscape.com 2002-09-18 18:35:24 +00:00
Родитель 5671916d02
Коммит 1a723b3fc4
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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)