changing the MIME type of a document

From: Alf Eaton <>
Date: Mon, 1 May 2006 22:55:06 -0400

I don't know if Piggy Bank still has problems with Firefox grabbing
application/rdf+xml files before it can get to them, but if it does
then this might be useful:

Basically that extension does:
var httpChannel = subject.QueryInterface
if (httpChannel.contentType == 'application/atom+xml') {
        httpChannel.contentType = 'text/xml';

so you could presumably use something like it to change 'application/
rdf+xml' into 'application/piggybank+xml' and associate Piggy Bank
with that new MIME type.

Having said that, from
PIGGYBANK-12 it looks like Firefox might grab the data even earlier,
so this wouldn't work.

Received on Tue May 02 2006 - 02:53:47 EDT

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:39:18 EDT