Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit 88ef7e1

Browse files
committed
Avoid new cloudflare auth header bot detection
1 parent 8142970 commit 88ef7e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vrcpy/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def __init__(self, loop=None, verify=True, proxy=None):
7474
asyncio.set_event_loop(loop)
7575

7676
async def _pre_loop(self):
77+
# Remove auth from headers to avoid cloudflare detection
78+
del self.request.session._default_headers["Authorization"]
79+
7780
self.loop.create_task(self.on_connect())
7881
tasks = []
7982

0 commit comments

Comments
 (0)