Skip to content

Commit

Permalink
Merge pull request #4355 from EvgeniDubov/fix_notebook_file_extension…
Browse files Browse the repository at this point in the history
…_case

Fix case sensitive notebook file extension
  • Loading branch information
minrk committed Feb 25, 2019
2 parents 4978373 + 56d4f2c commit 6a96754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/files/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get(self, path, include_body=True):
self.set_attachment_header(name)

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

0 comments on commit 6a96754

Please sign in to comment.