Skip to content

Commit 8d08f24

Browse files
authored
Force non br responses from cloudflare via accept-encoding (#477)
1 parent 342a1d2 commit 8d08f24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runpod/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def get_auth_header():
2929
"Content-Type": "application/json",
3030
"Authorization": auth,
3131
"User-Agent": USER_AGENT,
32+
"Accept-Encoding": "gzip, deflate",
3233
}
3334

34-
3535
def AsyncClientSession(*args, **kwargs): # pylint: disable=invalid-name
3636
"""
3737
Deprecation from aiohttp.ClientSession forbids inheritance.
@@ -50,4 +50,4 @@ class SyncClientSession(requests.Session):
5050
"""
5151
Inherits requests.Session to override `request()` method for tracing
5252
"""
53-
pass
53+
pass

0 commit comments

Comments
 (0)