From 85ee74a4d769a94b68b85787f09d3ff1172ad167 Mon Sep 17 00:00:00 2001 From: "valeski%netscape.com" Date: Tue, 7 Dec 1999 06:59:25 +0000 Subject: [PATCH] 20956. r=rpotts. necko no longer assumes any MIME type. we send out application/x-unknown-content-type internal MIME type if we don't *know* what the type is. It's now truly up to the app to figure out what to do" --- netwerk/protocol/http/src/nsHTTPChannel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/netwerk/protocol/http/src/nsHTTPChannel.cpp b/netwerk/protocol/http/src/nsHTTPChannel.cpp index b23e30834f9..24db36414c1 100644 --- a/netwerk/protocol/http/src/nsHTTPChannel.cpp +++ b/netwerk/protocol/http/src/nsHTTPChannel.cpp @@ -263,8 +263,6 @@ nsHTTPChannel::SetLoadAttributes(PRUint32 aLoadAttributes) return NS_OK; } -#define DUMMY_TYPE "text/html" - NS_IMETHODIMP nsHTTPChannel::GetContentType(char * *aContentType) { @@ -295,9 +293,8 @@ nsHTTPChannel::GetContentType(char * *aContentType) // XXX we should probably set the content-type for this http response at this stage too. } - // if all else fails treat it as text/html? if (!*aContentType) - *aContentType = nsCRT::strdup(DUMMY_TYPE); + *aContentType = nsCRT::strdup(UNKNOWN_MIME); if (!*aContentType) { rv = NS_ERROR_OUT_OF_MEMORY; } else {