changing the MIME type of a document

From: Alf Eaton <lists_at_hubmed.org>
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:
http://utils.ning.com/firefox/

Basically that extension does:
var httpChannel = subject.QueryInterface
(Components.interfaces.nsIHttpChannel);
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 http://simile.mit.edu/issues/browse/
PIGGYBANK-12 it looks like Firefox might grab the data even earlier,
so this wouldn't work.

alf.
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