changeset 6981 | 029a54423a96 |
parent 6857 | e8c2dae47799 |
child 7029 | b84d27386285 |
--- a/mercurial/hgweb/webcommands.py Wed Sep 03 02:27:25 2008 +0200 +++ b/mercurial/hgweb/webcommands.py Wed Sep 03 15:46:46 2008 +0200 @@ -50,8 +50,8 @@ path = fctx.path() text = fctx.data() mt = mimetypes.guess_type(path)[0] - if mt is None or binary(text): - mt = mt or 'application/octet-stream' + if mt is None: + mt = binary(text) and 'application/octet-stream' or 'text/plain' req.respond(HTTP_OK, mt, path, len(text)) return [text]