Add duplex
This commit is contained in:
@@ -157,7 +157,8 @@ async function hubProxyFunc(req, res) {
|
||||
method: req.method,
|
||||
headers: headersToSend,
|
||||
body: req.method !== 'GET' && req.method !== 'HEAD' ? req : undefined,
|
||||
redirect: 'manual'
|
||||
redirect: 'manual',
|
||||
duplex: 'half'
|
||||
});
|
||||
|
||||
for (const [key, value] of response.headers.entries()) {
|
||||
|
||||
Reference in New Issue
Block a user