Show More
@@ -28,12 +28,13 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 | # get mimetype from filename | |
|
37 | if name.endswith('.ipynb'): | |
|
37 | 38 | self.set_header('Content-Type', 'application/json') |
|
38 | 39 | else: |
|
39 | 40 | cur_mime = mimetypes.guess_type(name)[0] |
General Comments 0
You need to be logged in to leave comments.
Login now