Content-Type
is one of the response headers that cannot be modified. The others are Content-Lenght
, Content-Encoding
, Trailer
and Transfer-Encoding
.
However you can change the inherited contentType
attribute of nsIHttpChannel (some restrictions apply).