Merge pull request #30 from Parsa307/add-twitter-domain

fix: add twitter.com
This commit is contained in:
Abolfazl Ghaemi
2026-04-26 11:01:54 +03:30
committed by GitHub
+1 -1
View File
@@ -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