##// END OF EJS Templates
hgweb: ignore web.templates config when guessing mime type for static content...
Martin von Zweigbergk -
r45939:ec2fc4d0 default
parent child Browse files
Show More
@@ -201,7 +201,7 b' def staticfile(templatepath, directory, '
201 201 try:
202 202 os.stat(path)
203 203 ct = pycompat.sysbytes(
204 mimetypes.guess_type(pycompat.fsdecode(path))[0] or r"text/plain"
204 mimetypes.guess_type(pycompat.fsdecode(fpath))[0] or r"text/plain"
205 205 )
206 206 with open(path, b'rb') as fh:
207 207 data = fh.read()
General Comments 0
You need to be logged in to leave comments. Login now