Sets the proper content type on the channel so not to confuse upstream clients r=darin, sr=rpotts, b=169617
git-svn-id: svn://10.0.0.236/trunk@130184 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b087ce39fc
commit
d52c17967c
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user