Show More
@@ -166,7 +166,7 b' def staticfile(directory, fname, req):' | |||||
166 | break |
|
166 | break | |
167 | try: |
|
167 | try: | |
168 | os.stat(path) |
|
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 | with open(path, 'rb') as fh: |
|
170 | with open(path, 'rb') as fh: | |
171 | data = fh.read() |
|
171 | data = fh.read() | |
172 |
|
172 |
General Comments 0
You need to be logged in to leave comments.
Login now