This commit is contained in:
Chris Wanstrath 2026-02-16 09:43:47 -08:00
parent 82ff55ba99
commit 3736202020

View File

@ -44,6 +44,7 @@ export async function proxySubdomain(subdomain: string, req: Request): Promise<R
const headers = new Headers(req.headers)
headers.set('host', `localhost:${app.port}`)
headers.delete('connection')
headers.delete('content-length')
headers.delete('keep-alive')
headers.delete('transfer-encoding')
@ -52,6 +53,7 @@ export async function proxySubdomain(subdomain: string, req: Request): Promise<R
method: req.method,
headers,
body,
redirect: 'manual',
})
} catch (e) {
console.error(`Proxy error for ${subdomain}:`, e)