Skip to content

Commit

Permalink
Merge pull request #192 from grz0/master
Browse files Browse the repository at this point in the history
Fix bug in JSONTokenApi plugin

Closes #192
  • Loading branch information
DirectXMan12 committed Aug 27, 2015
2 parents f693871 + 487db5f commit 05cac26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion websockify/token_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ class JSONTokenApi(BaseTokenAPI):
# should go

def process_result(self, resp):
return (resp.json['host'], resp.json['port'])
resp_json = resp.json()
return (resp_json['host'], resp_json['port'])

0 comments on commit 05cac26

Please sign in to comment.