From ad5513d1a3e6fe36c668aa361d192e6b9415fb07 Mon Sep 17 00:00:00 2001 From: monosans Date: Mon, 17 Apr 2023 16:40:20 +0300 Subject: [PATCH] Don't check response content-type --- proxy_scraper_checker/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy_scraper_checker/proxy.py b/proxy_scraper_checker/proxy.py index cfd9844..f9470c4 100644 --- a/proxy_scraper_checker/proxy.py +++ b/proxy_scraper_checker/proxy.py @@ -46,7 +46,7 @@ class Proxy: await response.read() self.timeout = perf_counter() - start if website == DEFAULT_CHECK_WEBSITE: - data = await response.json() + data = await response.json(content_type=None) self.is_anonymous = self.host != data["query"] self.geolocation = "|{}|{}|{}".format( data["country"], data["regionName"], data["city"]