Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed jsonp transport encoding and xsrf protection for polling transp…

  • Loading branch information...
commit ab82170283b077fe670ba3f0e629825f19ec1c5c 1 parent e425706
@mrjoes mrjoes authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 tornadio2/
5 tornadio2/
@@ -96,6 +96,9 @@ def post(self, session_id):
self.set_header('Content-Type', 'text/plain; charset=UTF-8')
+ def check_xsrf_cookie(self):
+ pass
def send_messages(self, messages):
"""Called by the session when some data is available"""
raise NotImplementedError()
@@ -267,7 +270,7 @@ def post(self, session_id):
raise HTTPError(403)
# Grab data
- data = urllib.unquote(data[2:]).decode('utf-8')
+ data = urllib.unquote_plus(data[2:]).decode('utf-8')
# If starts with double quote, it is json encoded ( workaround)
if data.startswith(u'"'):
Please sign in to comment.
Something went wrong with that request. Please try again.