##// END OF EJS Templates
set application/json on contents model replies
Min RK -
Show More
@@ -47,6 +47,7 b' class ContentsHandler(IPythonHandler):'
47 location = self.location_url(model['path'])
47 location = self.location_url(model['path'])
48 self.set_header('Location', location)
48 self.set_header('Location', location)
49 self.set_header('Last-Modified', model['last_modified'])
49 self.set_header('Last-Modified', model['last_modified'])
50 self.set_header('Content-Type', 'application/json')
50 self.finish(json.dumps(model, default=date_default))
51 self.finish(json.dumps(model, default=date_default))
51
52
52 @web.authenticated
53 @web.authenticated
General Comments 0
You need to be logged in to leave comments. Login now