Don't check response content-type

This commit is contained in:
monosans
2023-04-17 16:40:20 +03:00
parent 5984aa191c
commit ad5513d1a3
+1 -1
View File
@@ -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"]