mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
12080d3654
commit
b7c5ec908e
@ -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…
Reference in New Issue
Block a user