Bug 238706 -- the guess-from-ext should never be exposed to the outside world.

r=biesi, sr=darin, a=chofmann
This commit is contained in:
bzbarsky%mit.edu 2004-03-30 23:52:00 +00:00
Родитель dac2a7833a
Коммит cc9706493f
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -531,7 +531,7 @@ PRBool nsUnknownDecoder::LastDitchSniff(nsIRequest* aRequest)
mContentType = TEXT_PLAIN;
}
else {
mContentType = APPLICATION_GUESS_FROM_EXT;
mContentType = APPLICATION_OCTET_STREAM;
}
return PR_TRUE;
@ -600,4 +600,8 @@ void
nsBinaryDetector::DetermineContentType(nsIRequest* aRequest)
{
LastDitchSniff(aRequest);
if (mContentType.Equals(APPLICATION_OCTET_STREAM)) {
// We want to guess at it instead
mContentType = APPLICATION_GUESS_FROM_EXT;
}
}