Topic: Mercurial webserver changed behaviour of raw files

In the "documentation" section of our project "Hatari" (http://hatari.tuxfamily.org/docs.html), we are linking directly to some files in our mercurial repository, using the "raw-file" type of the hg webserver (e.g. http://hg.tuxfamily.org/mercurialroot/h … anual.html ).
A couple of weeks ago, these files were nicely displayed directly in the web browsers, but recently, the web browsers show up a download dialog instead. Looks like the files are now served with content-type application/binary instead of text/html. When I googled a little bit for this problem, I came accross a new option called "guessmime" of hg which could be the culprit ... has this been changed recently? If so, would it be possible to change it back to the old behaviour, or shall we rather think of a different way to offer the doc at our website?

Thanks!

Re: Mercurial webserver changed behaviour of raw files

Hi,

huth wrote:

In the "documentation" section of our project "Hatari" (http://hatari.tuxfamily.org/docs.html), we are linking directly to some files in our mercurial repository, using the "raw-file" type of the hg webserver (e.g. http://hg.tuxfamily.org/mercurialroot/h … anual.html ).
A couple of weeks ago, these files were nicely displayed directly in the web browsers, but recently, the web browsers show up a download dialog instead. Looks like the files are now served with content-type application/binary instead of text/html. When I googled a little bit for this problem, I came accross a new option called "guessmime" of hg which could be the culprit ... has this been changed recently?

This is a side effect of the upgrade to Wheezy, for sure.


huth wrote:

If so, would it be possible to change it back to the old behaviour, or shall we rather think of a different way to offer the doc at our website?

This is quite unusual, but hey!, why not :-)

I added "guessmime = true" to the hgrc configuration, it works back like a charm.


Sylvain

Re: Mercurial webserver changed behaviour of raw files

Thanks for the quick fix! Tuxfamily really rocks!