From c238553a4e48ca5cedad564dca635ecb50558aab Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 4 Dec 2014 16:50:58 -0800 Subject: [PATCH] set application/json on contents model replies --- IPython/html/services/contents/handlers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/IPython/html/services/contents/handlers.py b/IPython/html/services/contents/handlers.py index ea33f17a6..a85e8c6b3 100644 --- a/IPython/html/services/contents/handlers.py +++ b/IPython/html/services/contents/handlers.py @@ -47,6 +47,7 @@ class ContentsHandler(IPythonHandler): location = self.location_url(model['path']) self.set_header('Location', location) self.set_header('Last-Modified', model['last_modified']) + self.set_header('Content-Type', 'application/json') self.finish(json.dumps(model, default=date_default)) @web.authenticated