Mona has made these nice filters:
These filters are for responses whose Content-Type is
set to "unknown" or the header is missing entirely.
The filter is cancelled in the unlikely event that an
image file or some other binary file has such a header,
or if it's a batch file. Most of the common extensions
are covered; if there are others you'd liked to see
included, just add the extension in the URL Match
exclusion as part of the OR statement.
These filters replace any previous versions I may have
posted to filter unknown or missing Content-Type.
-Mona
------------------8<-------------------
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Content-Type: If Missing - Filter Contents (in)"
URL = "^(*.(avi|bmp|gif|jpg|arc|bat|cab|exe|gz|jar|mid|mp3|pdf|rmi|wav|zip)(?|(^?)))"
Match = "^?"
Replace = "text/html"
In = TRUE
Out = FALSE
Key = "Content-Type: If Unknown - Filter Contents (in)"
URL = "^(*.(avi|bmp|gif|jpg|arc|bat|cab|exe|gz|jar|mid|mp3|pdf|rmi|wav|zip)(?|(^?)))"
Match = "unknown"
Replace = "unknown$FILTER(True)"
------------------8<-------------------
Best wishes
Arne
Imici username: Arne