##// END OF EJS Templates
Use *args, **kwargs, log.warn
Kyle Kelley -
Show More
@@ -53,18 +53,18 b' class ZMQStreamHandler(websocket.WebSocketHandler):'
53 53
54 54 # Check to see that origin matches host directly, including ports
55 55 if origin != host:
56 self.log.critical("Cross Origin WebSocket Attempt.")
56 self.log.warn("Cross Origin WebSocket Attempt.")
57 57 raise web.HTTPError(404)
58 58
59 59
60 def _execute(self, transforms, *args, **kwargs):
60 def _execute(self, *args, **kwargs):
61 61 """Wrap all calls to make sure origin gets checked."""
62 62
63 63 # Check to see that origin matches host directly, including ports
64 64 self.check_origin()
65 65
66 66 # Pass on the rest of the handling by the WebSocketHandler
67 super(ZMQStreamHandler, self)._execute(transforms, *args, **kwargs)
67 super(ZMQStreamHandler, self)._execute(*args, **kwargs)
68 68
69 69 def clear_cookie(self, *args, **kwargs):
70 70 """meaningless for websockets"""
General Comments 0
You need to be logged in to leave comments. Login now