зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
dac2a7833a
Коммит
cc9706493f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче