Fix variable name

This commit is contained in:
adamoutler 2023-02-12 19:49:26 +00:00
parent 6d5e90d278
commit 29c6ee9a90

View File

@ -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):