Added decorator

Added decorator `@gen.coroutine` to `FileHandler.get()`
pull/4891/head
Tom Jarosz 7 years ago committed by GitHub
parent 9b597a9091
commit d77c72b1b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,6 +35,7 @@ class FilesHandler(IPythonHandler):
return self.get(path, include_body=False)
@web.authenticated
@gen.coroutine
def get(self, path, include_body=True):
# /files/ requests must originate from the same site
self.check_xsrf_cookie()

Loading…
Cancel
Save