From 91560500738613ee9408959d1dc1b575e638d8b4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 16 Apr 2020 01:28:10 +0000 Subject: [PATCH] Fixes following tests on the battlefield --- yunodiagnoser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yunodiagnoser.py b/yunodiagnoser.py index 569d474..cbdf49d 100644 --- a/yunodiagnoser.py +++ b/yunodiagnoser.py @@ -119,7 +119,7 @@ async def check_http(request): assert data, "Empty request body" assert isinstance(data, dict), "Request body ain't a proper dict" assert "domains" in data, "No 'domains' provided" - assert "nounce" in data, "No 'nounce' provided" + assert "nonce" in data, "No 'nonce' provided" # Check domain list format assert isinstance(data["domains"], list), "'domains' ain't a list" @@ -152,11 +152,11 @@ async def check_http(request): } }, status=400) - domain = data["domains"] + domains = data["domains"] nonce = data["nonce"] return json_response({ - "http": {domain: await check_http_domain(ip, domain, nonce)} for domain in domains} + "http": {domain: await check_http_domain(ip, domain, nonce) for domain in domains} })