зеркало из https://github.com/mozilla/gecko-dev.git
Bug 285045 Set the content type on the channel when sniffing it
r=bz sr=darin
This commit is contained in:
Родитель
95e9b0c3fd
Коммит
a9d6b2bc0d
|
@ -641,7 +641,10 @@ NS_IMETHODIMP nsExternalHelperAppService::DoContent(const nsACString& aMimeConte
|
|||
// Extension lookup gave us no useful match
|
||||
GetFromTypeAndExtension(NS_LITERAL_CSTRING(APPLICATION_OCTET_STREAM), fileExtension,
|
||||
getter_AddRefs(mimeInfo));
|
||||
mimeType.AssignLiteral(APPLICATION_OCTET_STREAM);
|
||||
}
|
||||
if (channel)
|
||||
channel->SetContentType(mimeType);
|
||||
}
|
||||
else {
|
||||
GetFromTypeAndExtension(aMimeContentType, fileExtension,
|
||||
|
|
Загрузка…
Ссылка в новой задаче