Skip to content

Commit 7b05bb4

Browse files
committed
fix: add twitter.com
1 parent b030aaf commit 7b05bb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/proxy_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ where
18621862
// pourya-p's log in #64 showed the real Host header. Match every
18631863
// subdomain of x.com here.
18641864
let host_lower = host.to_ascii_lowercase();
1865-
let is_x_com = host_lower == "x.com" || host_lower.ends_with(".x.com");
1865+
let is_x_com = host_lower == "x.com" || host_lower == "twitter.com" || host_lower.ends_with(".x.com");
18661866
let path = if is_x_com && path.starts_with("/i/api/graphql/") && path.contains("?variables=") {
18671867
match path.split_once('&') {
18681868
Some((short, _)) => {

0 commit comments

Comments
 (0)