removing bug with return true in post

Error with get replicate in post: http://stackoverflow.com/questions/19563093
This commit is contained in:
Diogo
2014-09-27 23:03:24 -03:00
parent e40937bd8b
commit 11082987ea
+2 -2
View File
@@ -117,7 +117,7 @@ class PostHandler(tornado.web.RequestHandler):
return 'false'
for client in listeners.get(group, []):
client.write_message(message)
return 'true'
return None
return 'false'
@@ -137,7 +137,7 @@ class TokenHandler(tornado.web.RequestHandler):
if not hmac.new(hmac_key, message).hexdigest() == signature:
return 'false'
tokens[message] = None
return 'true'
return None
return 'false'