changeset 34721 | baee5512f262 |
parent 34643 | f42dec9c976e |
child 35038 | 6ef744a7df65 |
--- a/mercurial/hgweb/common.py Sat Oct 14 15:37:33 2017 -0400 +++ b/mercurial/hgweb/common.py Sat Oct 14 10:47:29 2017 -0400 @@ -166,7 +166,7 @@ break try: os.stat(path) - ct = mimetypes.guess_type(path)[0] or "text/plain" + ct = mimetypes.guess_type(pycompat.fsdecode(path))[0] or "text/plain" with open(path, 'rb') as fh: data = fh.read()