Skip to content

Commit f7d3c4f

Browse files
committed
Revert "attempt febbox proxy"
This reverts commit d0c6984.
1 parent d0c6984 commit f7d3c4f

File tree

2 files changed

+1
-176
lines changed

2 files changed

+1
-176
lines changed

src/routes/febbox-proxy.ts

Lines changed: 0 additions & 166 deletions
This file was deleted.

src/utils/headers.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,9 @@ export function getProxyHeaders(headers: Headers): Headers {
4040
// default user agent
4141
output.set(
4242
'User-Agent',
43-
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Safari/605.1.15',
43+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0',
4444
);
4545

46-
// Add common browser headers
47-
output.set('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8');
48-
output.set('Accept-Language', 'en-US,en;q=0.9');
49-
output.set('Accept-Encoding', 'gzip, deflate, br');
50-
output.set('Connection', 'keep-alive');
51-
output.set('Sec-Fetch-Dest', 'document');
52-
output.set('Sec-Fetch-Mode', 'navigate');
53-
output.set('Sec-Fetch-Site', 'none');
54-
5546
Object.entries(headerMap).forEach((entry) => {
5647
copyHeader(headers, output, entry[0], entry[1]);
5748
});

0 commit comments

Comments
 (0)