webpack-dev-server icon indicating copy to clipboard operation
webpack-dev-server copied to clipboard

Proxy does not stream when fetch requests server to stream

Open dsmelon opened this issue 1 year ago • 0 comments

Bug report

When I use the eventSource request, the compress:fasle is configured. The proxy has a streaming effect. However, when I use fetch request, set content-type:text/event-stream, still configure compress:false, no streaming effect.

Actual Behavior

Should have streaming effects

Expected Behavior

No streaming effects, all returned in one frame

How Do We Reproduce?

server:{type:'https'}, compress: fasle

fetch('xxx', { headers: { 'Content-Type': 'text/event-stream' } })

Please paste the results of npx webpack-cli info here, and mention other relevant information

[email protected] [email protected]

dsmelon avatar Aug 29 '24 09:08 dsmelon