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?
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to