fix: add twitter.com

This commit is contained in:
Parsast
2026-04-26 10:55:08 +03:30
parent 4fe115b2c3
commit 2216abb943
+1 -1
View File
@@ -1200,7 +1200,7 @@ class ProxyServer:
headers[k.strip()] = v.strip() headers[k.strip()] = v.strip()
# Shortening the length of X API URLs to prevent relay errors. # 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] path = path.split("&")[0]
# MITM traffic arrives as origin-form paths; SOCKS/plain HTTP can # MITM traffic arrives as origin-form paths; SOCKS/plain HTTP can