Getting or viewing *.svgz file(which is essentially a gzipped *.svg file) is broken. Browser shows following:
XML Parsing Error: not well-formed Location: http://mydomain.com/mywiki/somepage?action=AttachFile&do=get&target=example.svgz Line Number 1, Column 1:
Steps to reproduce
- Attach *.svgz file to some wiki page
- Try to view or get it
After some disscussion on irc here is what seems to be correct:
python should have .svgz -> .svg.gz map in mimetypes.suffix_map, that is python issue which can be worked around by modifying mimtypes in wiki configs.
- moinmoin should add 'Content-Encoding: gzip' http header for *.svgz files
- if this is done, firefox will decompress the file, but nevertheless save it as example.svg.gz (or .svgz), which is wrong, because it is not gzipped any more.
In order to workaround .svgz -> .svg.gz map issue I have added following to moin.cgi file:
import mimetypes mimetypes.suffix_map['.svgz'] = '.svg.gz'
- Assigned to: