Back out ea2f8a85e0ed (bug 715809) for orange

This commit is contained in:
Phil Ringnalda 2012-02-09 19:33:22 -08:00
Родитель a0671bae3d
Коммит e91c4fb5a3
1 изменённых файлов: 11 добавлений и 0 удалений

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

@ -1053,6 +1053,17 @@ nsOfflineManifestItem::OnStartRequest(nsIRequest *aRequest,
return NS_ERROR_ABORT;
}
nsCAutoString contentType;
rv = channel->GetContentType(contentType);
NS_ENSURE_SUCCESS(rv, rv);
if (!contentType.EqualsLiteral("text/cache-manifest")) {
LOG(("Rejected cache manifest with Content-Type %s (expecting text/cache-manifest)",
contentType.get()));
mParserState = PARSE_ERROR;
return NS_ERROR_ABORT;
}
rv = GetOldManifestContentHash(aRequest);
NS_ENSURE_SUCCESS(rv, rv);