Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
fix dns resp check (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekulicd authored Nov 7, 2023
1 parent 385ecf0 commit 2aa64bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 2aa64bb

Please sign in to comment.