Christian Biesinger <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Matthew Wilson wrote:
> > My code is here 
> > http://www.mozdev.org/source/browse/wmlbrowser/src/components/wml-service.js?rev=1.6&content-type=text/x-cvsweb-markup
> > if anyone has time to try and see what I'm doing wrong.
> 
> 
>      var ioService = 
> Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService)
>      this.channel = ioService.newChannelFromURI (uri);
>      this.channel.contentType = "text/html";
> 
> This is probably not such a good idea... Consider the case of an HTTP 
> Channel. If the real listener wants, for example, to get HTTP Response 
> headers, it will fail.
> 
> Why don't you just change the content type of the "incoming" channel to 
> the one you want?

I could have sworn that I tried that but got some kind of obscure
error message. But trying it again it seems to work perfectly.

Thanks for everyone's help on this,

Matthew
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to