Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/hgweb.py @ 2103:caccf539c9a4
Use application/octet-stream as the content-type of unknown binary files
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 20 Apr 2006 15:42:02 +0200 |
parents | 0bf2a9e5eff1 |
children | 633d733e7b11 |
line wrap: on
line diff
--- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -419,7 +419,8 @@ class hgweb(object): mt = mimetypes.guess_type(f)[0] rawtext = text if util.binary(text): - text = "(binary:%s)" % (mt or 'data') + mt = mt or 'application/octet-stream' + text = "(binary:%s)" % mt mt = mt or 'text/plain' def lines():