Skip to content

Commit 4a9cfa7

Browse files
authored
Merge pull request #4891 from TomTJarosz/FixFileHandler
Make `FilesHandler.get()` a decorated coroutine. Closes #4869
2 parents 9b597a9 + 6092b29 commit 4a9cfa7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebook/files/handlers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import json
88
from base64 import decodebytes
99

10-
from tornado import web
10+
from tornado import gen, web
1111

1212
from notebook.base.handlers import IPythonHandler
1313
from notebook.utils import maybe_future
@@ -35,6 +35,7 @@ def head(self, path):
3535
return self.get(path, include_body=False)
3636

3737
@web.authenticated
38+
@gen.coroutine
3839
def get(self, path, include_body=True):
3940
# /files/ requests must originate from the same site
4041
self.check_xsrf_cookie()

0 commit comments

Comments
 (0)