mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
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:
parent
dac2a7833a
commit
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user