set application/json on contents model replies

pull/37/head
Min RK 11 years ago
parent 2452c0c2f7
commit c238553a4e

@ -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

Loading…
Cancel
Save