Upgrade h3

This commit is contained in:
mrjvs
2024-01-04 20:16:53 +01:00
parent 054ea6aa07
commit 882e26fa1b
3 changed files with 28 additions and 15 deletions

View File

@@ -11,6 +11,7 @@ const blacklistedHeaders = [
'x-forwarded-proto',
'forwarded',
'x-real-ip',
'user-agent',
];
function copyHeader(
@@ -26,7 +27,7 @@ function copyHeader(
export function getProxyHeaders(headers: Headers): Headers {
const output = new Headers();
// default user-agent
// default user agent
output.set(
'User-Agent',
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0',