mirror of
https://github.com/masterking32/MasterHttpRelayVPN.git
synced 2026-05-17 21:24:37 +03:00
Merge pull request #30 from Parsa307/add-twitter-domain
fix: add twitter.com
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user