Sets the proper content type on the channel so not to confuse upstream clients r=darin, sr=rpotts, b=169617

This commit is contained in:
dougt%netscape.com 2002-09-20 22:43:15 +00:00
parent 12080d3654
commit b7c5ec908e

View File

@ -138,6 +138,8 @@ nsIndexedToHTML::OnStartRequest(nsIRequest* request, nsISupports *aContext) {
rv = channel->GetURI(getter_AddRefs(uri));
if (NS_FAILED(rv)) return rv;
channel->SetContentType(NS_LITERAL_CSTRING("text/html"));
mParser = do_CreateInstance("@mozilla.org/dirIndexParser;1",&rv);
if (NS_FAILED(rv)) return rv;