mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
Merge pull request #1861 from minrk/notebook-mime-type
fix notebook mime-type on download links
This commit is contained in:
commit
2e14975d1f
@ -43,7 +43,7 @@ class FilesHandler(IPythonHandler):
|
||||
|
||||
# get mimetype from filename
|
||||
if name.endswith('.ipynb'):
|
||||
self.set_header('Content-Type', 'application/json')
|
||||
self.set_header('Content-Type', 'application/x-ipynb+json')
|
||||
else:
|
||||
cur_mime = mimetypes.guess_type(name)[0]
|
||||
if cur_mime is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user