diff --git a/css_browserhook.py b/css_browserhook.py index c945536..eb4615d 100644 --- a/css_browserhook.py +++ b/css_browserhook.py @@ -1,6 +1,6 @@ import os, re, uuid, asyncio, json, aiohttp, time from typing import List -from css_utils import get_theme_path, Log, Result +from css_utils import get_theme_path, Log, Result, PLATFORM_WIN import css_inject MAX_QUEUE_SIZE = 500 @@ -414,7 +414,7 @@ async def health_check(self): while True: await asyncio.sleep(3) try: - async with aiohttp.ClientSession() as web: + async with aiohttp.ClientSession(trust_env=PLATFORM_WIN) as web: res = await web.get(f"http://127.0.0.1:8080/json/version", timeout=3) if (res.status != 200):