Skip to content

Commit 56d4f2c

Browse files
committed
changing file name to lower case before checking if file extension is ipynb
1 parent 7ded638 commit 56d4f2c

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)