no more streaming

This commit is contained in:
Para Dox
2025-06-01 21:32:56 +07:00
parent d8659d1040
commit a454a57ff9

View File

@@ -397,7 +397,7 @@ class RPCProxy {
const chunks = []; const chunks = [];
// Check if we should buffer the response (for clients that don't handle streaming well) // Check if we should buffer the response (for clients that don't handle streaming well)
const shouldBuffer = req.headers['user-agent'] && req.headers['user-agent'].includes('ReactorNetty'); const shouldBuffer = res.req.headers['user-agent'] && res.req.headers['user-agent'].includes('ReactorNetty');
response.data.on('data', (chunk) => { response.data.on('data', (chunk) => {
// Always capture raw chunks for comparison // Always capture raw chunks for comparison