From b67daaea27cb51daee5bffd281bc2ee95ea53ec3 Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 3 Nov 2023 06:26:35 +0100 Subject: [PATCH] always do event stream logic for `/eth/v1/events` calls --- proxy/proxycall.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/proxycall.go b/proxy/proxycall.go index 6510d29..f13cab5 100644 --- a/proxy/proxycall.go +++ b/proxy/proxycall.go @@ -117,7 +117,7 @@ func (proxy *BeaconProxy) processProxyCall(w http.ResponseWriter, r *http.Reques } respContentType := resp.Header.Get("Content-Type") - isEventStream := respContentType == "text/event-stream" + isEventStream := respContentType == "text/event-stream" || strings.HasPrefix(r.URL.EscapedPath(), "/eth/v1/events") // passthru response headers respH := w.Header()