##// END OF EJS Templates
hgweb: mimetype guessing needs a unicode path...
Augie Fackler -
r34722:baee5512 default
parent child Browse files
Show More
@@ -166,7 +166,7 b' def staticfile(directory, fname, req):'
166 166 break
167 167 try:
168 168 os.stat(path)
169 ct = mimetypes.guess_type(path)[0] or "text/plain"
169 ct = mimetypes.guess_type(pycompat.fsdecode(path))[0] or "text/plain"
170 170 with open(path, 'rb') as fh:
171 171 data = fh.read()
172 172
General Comments 0
You need to be logged in to leave comments. Login now