Commit d6ea58dd authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Add .out to custom extensions which use text mimetype

parent 1396570f
......@@ -225,7 +225,7 @@ class VersionedFile(file):
def guess_mimetype(filename):
TEXT_EXTENSIONS = ['.log', '.out']
filename = VersionedFile.basename(filename)
content_type, encoding = mimetypes.guess_type(filename)
if content_type is None and '.' in filename:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment