mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
Fix terminals with Tornado 3
The websocket handler auth checking was calling clear_cookie(), which threw an error because it doesn't make sense for Websockets. It doesn't seem important, and we silence it in our other websocket handlers, so silencing it here too.
This commit is contained in:
parent
965102ba60
commit
ce14f905e0
@ -32,6 +32,10 @@ class TermSocket(terminado.TermSocket, IPythonHandler):
|
||||
# tornado 3 has no get, will raise 405
|
||||
if tornado.version_info >= (4,):
|
||||
return super(TermSocket, self).get(*args, **kwargs)
|
||||
|
||||
def clear_cookie(self, *args, **kwargs):
|
||||
"""meaningless for websockets"""
|
||||
pass
|
||||
|
||||
def open(self, *args, **kwargs):
|
||||
if tornado.version_info < (4,):
|
||||
|
Loading…
Reference in New Issue
Block a user