From 2216abb94328d47769992c466d8da8f55759ecfd Mon Sep 17 00:00:00 2001 From: Parsast Date: Sun, 26 Apr 2026 10:55:08 +0330 Subject: [PATCH] fix: add twitter.com --- src/proxy_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy_server.py b/src/proxy_server.py index ff83b47..ce00a04 100644 --- a/src/proxy_server.py +++ b/src/proxy_server.py @@ -1200,7 +1200,7 @@ class ProxyServer: headers[k.strip()] = v.strip() # Shortening the length of X API URLs to prevent relay errors. - if host == "x.com" and re.match(r"/i/api/graphql/[^/]+/[^?]+\?variables=", path): + if (host == "x.com" or host == "twitter.com") and re.match(r"/i/api/graphql/[^/]+/[^?]+\?variables=", path): path = path.split("&")[0] # MITM traffic arrives as origin-form paths; SOCKS/plain HTTP can