From a70f1e220e37cfea6fdf2228d3d475637acf7b3d Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 24 Apr 2015 13:49:11 -0700 Subject: [PATCH] disable set_default_headers on TermSocket inherited from IPythonHandler, but doesn't make sense or work on websockets. --- jupyter_notebook/terminal/handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jupyter_notebook/terminal/handlers.py b/jupyter_notebook/terminal/handlers.py index 5a14e95ff..d8f83056b 100644 --- a/jupyter_notebook/terminal/handlers.py +++ b/jupyter_notebook/terminal/handlers.py @@ -17,6 +17,9 @@ class TerminalHandler(IPythonHandler): ws_path="terminals/websocket/%s" % term_name)) class TermSocket(terminado.TermSocket, IPythonHandler): + def set_default_headers(self): + pass + def get(self, *args, **kwargs): if not self.get_current_user(): raise web.HTTPError(403)