Add duplex

This commit is contained in:
shirosaki-hana
2025-04-18 13:18:37 +09:00
parent 5168565b4f
commit 1b62dc95ed

View File

@@ -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()) {