again
This commit is contained in:
parent
82ff55ba99
commit
3736202020
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user