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)
|
const headers = new Headers(req.headers)
|
||||||
headers.set('host', `localhost:${app.port}`)
|
headers.set('host', `localhost:${app.port}`)
|
||||||
headers.delete('connection')
|
headers.delete('connection')
|
||||||
|
headers.delete('content-length')
|
||||||
headers.delete('keep-alive')
|
headers.delete('keep-alive')
|
||||||
headers.delete('transfer-encoding')
|
headers.delete('transfer-encoding')
|
||||||
|
|
||||||
|
|
@ -52,6 +53,7 @@ export async function proxySubdomain(subdomain: string, req: Request): Promise<R
|
||||||
method: req.method,
|
method: req.method,
|
||||||
headers,
|
headers,
|
||||||
body,
|
body,
|
||||||
|
redirect: 'manual',
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(`Proxy error for ${subdomain}:`, e)
|
console.error(`Proxy error for ${subdomain}:`, e)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user