Submitter | phabricator |
---|---|
Date | Oct. 15, 2017, 1:27 p.m. |
Message ID | <a582f9daad9c964af4968376d5da7ec3@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/24943/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/common.py b/mercurial/hgweb/common.py --- a/mercurial/hgweb/common.py +++ b/mercurial/hgweb/common.py @@ -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()