mirror of
https://github.com/StefBuwalda/dashboard_test.git
synced 2025-10-30 03:09:59 +00:00
Disabled auto decompression for security reasons
This commit is contained in:
@@ -17,6 +17,7 @@ async def check_service(client: aiohttp.ClientSession, s: service) -> log:
|
|||||||
ssl=True if s.public_access else False,
|
ssl=True if s.public_access else False,
|
||||||
allow_redirects=True,
|
allow_redirects=True,
|
||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
|
auto_decompress=False,
|
||||||
)
|
)
|
||||||
case 1:
|
case 1:
|
||||||
r = await client.get(
|
r = await client.get(
|
||||||
@@ -24,6 +25,7 @@ async def check_service(client: aiohttp.ClientSession, s: service) -> log:
|
|||||||
ssl=True if s.public_access else False,
|
ssl=True if s.public_access else False,
|
||||||
allow_redirects=True,
|
allow_redirects=True,
|
||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
|
auto_decompress=False,
|
||||||
)
|
)
|
||||||
case _:
|
case _:
|
||||||
raise Exception("UNKNOWN PING TYPE")
|
raise Exception("UNKNOWN PING TYPE")
|
||||||
|
|||||||
Reference in New Issue
Block a user