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"

This commit is contained in:
valeski%netscape.com 1999-12-07 06:59:25 +00:00
Родитель c361fb197f
Коммит 85ee74a4d7
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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 {