From 2aa64bb114694f9b0e85950e022c6754a915236b Mon Sep 17 00:00:00 2001 From: Dusan Sekulic Date: Tue, 7 Nov 2023 15:32:56 +0100 Subject: [PATCH] fix dns resp check (#186) --- app/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/utils.py b/app/core/utils.py index a02d1b1..19ee517 100644 --- a/app/core/utils.py +++ b/app/core/utils.py @@ -262,7 +262,7 @@ def check_dns_exists(): try: response = requests.get(url) if response.status_code == HTTPStatus.OK and response.content: - if response.headers["Content-Type"] == "application/json": + if "application/json" in response.headers["Content-Type"]: json_response = response.json() if json_response is not None and "domain" in json_response: cached_domain = json_response["domain"]