##// END OF EJS Templates
Get /files/ unmodified from contents...
Min RK -
Show More
@@ -28,12 +28,12 b' class FilesHandler(IPythonHandler):'
28 28 else:
29 29 name = path
30 30
31 model = cm.get(path)
31 model = cm.get(path, type='file')
32 32
33 33 if self.get_argument("download", False):
34 34 self.set_header('Content-Disposition','attachment; filename="%s"' % name)
35 35
36 if model['type'] == 'notebook':
36 if model['type'] == 'notebook' or name.endswith('.ipynb'):
37 37 self.set_header('Content-Type', 'application/json')
38 38 else:
39 39 cur_mime = mimetypes.guess_type(name)[0]
General Comments 0
You need to be logged in to leave comments. Login now