Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Mar 14, 2015
1 parent 028faf5 commit 104f2bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wsrpc/websocket/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ def _execute(self, transforms, *args, **kwargs):
if self.authorize():
return super(WebSocketBase, self)._execute(transforms, *args, **kwargs)
else:
return self.finish(tornado.escape.utf8(
"HTTP/1.1 403 Forbidden\r\n\r\n"
"Access deny to \"WebSocket\"."
))
return self.send_error(403)

def authorize(self):
return True
Expand Down

0 comments on commit 104f2bf

Please sign in to comment.