From a9d6b2bc0df2f59ddc5d7397f6f08f02b7b63d38 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Mon, 7 Mar 2005 19:18:12 +0000 Subject: [PATCH] Bug 285045 Set the content type on the channel when sniffing it r=bz sr=darin --- uriloader/exthandler/nsExternalHelperAppService.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp index c888271d92a4..673fd2dcb1fa 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.cpp +++ b/uriloader/exthandler/nsExternalHelperAppService.cpp @@ -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,