mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-29 23:41:38 -06:00
Fix use of 'json' instead of 'j'
This bug was created when switching from simplejson to json module, due to python 2.5->2.7 migration. Any variables named 'json' needed to be renamed, and this is an instance that was missed.
This commit is contained in:
parent
39b5b9e923
commit
42efd09692
@ -28,7 +28,7 @@ class SendCommand(webapp.RequestHandler):
|
||||
def post(self):
|
||||
hash = self.request.body[:32]
|
||||
j = self.request.body[32:]
|
||||
m = md5(json + config.SENDCOMMAND_SECRET)
|
||||
m = md5(j + config.SENDCOMMAND_SECRET)
|
||||
if m.hexdigest() == hash:
|
||||
c = json.loads(j)
|
||||
serverinfo.ServerInfo.send_command(c['info'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user