Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 6d2e61aa authored by Betoule Marc's avatar Betoule Marc
Browse files

Add mime type for fits files

parent 2412a18d
......@@ -531,6 +531,8 @@ Delete products directories of a given task id. The list of task id is '-' separ
else:
if os.path.splitext(filepath)[1] in ['.log','.txt','.list','.py']:
return serve_file(filepath, content_type='text/plain', disposition="inline")
elif os.path.splitext(filepath)[1] in ['.fits','.fz']:
return serve_file(filepath, content_type='application/fits', disposition="inline")
elif os.path.splitext(filepath)[1] in ['.pkl', '.meta', '.args', '.version']:
return self.serve_pickle(filepath)
else:
......
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