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