From ebf000328042162e2d125b7bd615c90229ebfca5 Mon Sep 17 00:00:00 2001 From: toimtoimtoim Date: Mon, 15 Apr 2024 20:33:40 +0300 Subject: [PATCH] proxy middleware should use http proxy for SSE requests --- middleware/proxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/middleware/proxy.go b/middleware/proxy.go index f6b302af1..495970aca 100644 --- a/middleware/proxy.go +++ b/middleware/proxy.go @@ -366,8 +366,7 @@ func ProxyWithConfig(config ProxyConfig) echo.MiddlewareFunc { switch { case c.IsWebSocket(): proxyRaw(tgt, c).ServeHTTP(res, req) - case req.Header.Get(echo.HeaderAccept) == "text/event-stream": - default: + default: // even SSE requests proxyHTTP(tgt, c, config).ServeHTTP(res, req) }