Submitter | phabricator |
---|---|
Date | Aug. 19, 2020, 4:42 a.m. |
Message ID | <differential-rev-PHID-DREV-vrrpn6c4fv2s5qultt35-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/47033/ |
State | Superseded |
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 @@ -201,7 +201,7 @@ try: os.stat(path) ct = pycompat.sysbytes( - mimetypes.guess_type(pycompat.fsdecode(path))[0] or r"text/plain" + mimetypes.guess_type(pycompat.fsdecode(fpath))[0] or r"text/plain" ) with open(path, b'rb') as fh: data = fh.read()