From 56d4f2c3fc4ed638aee3ce519fc3a0f82c3d414a Mon Sep 17 00:00:00 2001 From: edubov Date: Sun, 20 Jan 2019 13:35:13 +0200 Subject: [PATCH] changing file name to lower case before checking if file extension is ipynb --- notebook/files/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/files/handlers.py b/notebook/files/handlers.py index 1da0ad71d4..02ca2f8317 100644 --- a/notebook/files/handlers.py +++ b/notebook/files/handlers.py @@ -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]