Fix variable name
This commit is contained in:
parent
6d5e90d278
commit
29c6ee9a90
@ -31,7 +31,7 @@ class IDGAFServer(BaseHTTPRequestHandler):
|
||||
print(command)
|
||||
if command['message']['command'] == 'aidgaf':
|
||||
[responseCode, json_response] = idgaf.parse_idgaf_request(command)
|
||||
json_response['hash'] = security.get_message_hash(json.dumps(response_body))
|
||||
json_response['hash'] = security.get_message_hash(json.dumps(command))
|
||||
response_body = json.dumps(json_response)
|
||||
self.handle_response(responseCode, response_body)
|
||||
|
||||
@ -50,7 +50,7 @@ class IDGAFServer(BaseHTTPRequestHandler):
|
||||
self.send_response(code)
|
||||
self.send_header("Content-type", "text/html")
|
||||
self.end_headers()
|
||||
print("sending:"+response_body)
|
||||
print("sending:"+body)
|
||||
self.wfile.write(bytes(body, UTF8))
|
||||
|
||||
def perform_sanity_checks(str_request):
|
||||
|
Loading…
x
Reference in New Issue
Block a user