On Thu, 01 Jun 2006 10:55:52 -0500, Boris Zbarsky wrote :
> 
> For what it's worth, biesi has a patch that does this in the relevant bug
> in bugzilla...

That seems to be https://bugzilla.mozilla.org/show_bug.cgi?id=57342

He did not update it since 2005-03-09. Does it mean this went to a low
priority ?

>> setResponseHeader("Content-Type", "text/plain", false)
> 
> nsHttpChannel::SetResponseHeader says:
> 
> 3656     // these response headers must not be changed 3657     if (atom
> == nsHttp::Content_Type || 3658         atom == nsHttp::Content_Length ||
> 3659         atom == nsHttp::Content_Encoding || 3660         atom ==
> nsHttp::Trailer || 3661         atom == nsHttp::Transfer_Encoding) 3662   
>      return NS_ERROR_ILLEGAL_VALUE; 3663
> 
> You could SetContentType instead of SetResponseHeader, for what it's
> worth...

Thanks, that's ok with SetResponseHeader. I have seen the
force content type extension (http://forcecontenttype.mozdev.org/) which
is a good example of using this.

However, I have seen some situations where neither
http-on-examine-response or http-on-examine-merged-response are called
when accessing a page (for instance, using a link from personal bookmark
toolbar). I don't know if these are bugs or side effects of some other
things.


Ricky
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to