Skip to content

Commit e0f2a02

Browse files
authored
proxy middleware should use http proxy for SSE requests (#2624)
1 parent 3062025 commit e0f2a02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

middleware/proxy.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,7 @@ func ProxyWithConfig(config ProxyConfig) echo.MiddlewareFunc {
366366
switch {
367367
case c.IsWebSocket():
368368
proxyRaw(tgt, c).ServeHTTP(res, req)
369-
case req.Header.Get(echo.HeaderAccept) == "text/event-stream":
370-
default:
369+
default: // even SSE requests
371370
proxyHTTP(tgt, c, config).ServeHTTP(res, req)
372371
}
373372

0 commit comments

Comments
 (0)