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
parent dac2a7833a
commit cc9706493f

View File

@ -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;
}
}