mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
Bug 285045 Set the content type on the channel when sniffing it
r=bz sr=darin
This commit is contained in:
parent
95e9b0c3fd
commit
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user