Skip to content

Commit 6a96754

Browse files
authored
Merge pull request #4355 from EvgeniDubov/fix_notebook_file_extension_case
Fix case sensitive notebook file extension
2 parents 4978373 + 56d4f2c commit 6a96754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/files/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get(self, path, include_body=True):
5757
self.set_attachment_header(name)
5858

5959
# get mimetype from filename
60-
if name.endswith('.ipynb'):
60+
if name.lower().endswith('.ipynb'):
6161
self.set_header('Content-Type', 'application/x-ipynb+json')
6262
else:
6363
cur_mime = mimetypes.guess_type(name)[0]

0 commit comments

Comments
 (0)