From f442409ebfe3a0407524fab2d24694922fc011d3 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Tue, 6 Aug 2024 00:18:36 +0100 Subject: [PATCH] Forgot to make the map --- proxy/websocket/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/websocket/server.go b/proxy/websocket/server.go index 9fc678d..f50a30b 100644 --- a/proxy/websocket/server.go +++ b/proxy/websocket/server.go @@ -87,6 +87,7 @@ func (s *Server) Upgrade(rw http.ResponseWriter, req *http.Request) { // filterWebsocketHeaders allows specific headers to forward to the underlying websocket connection func filterWebsocketHeaders(headers http.Header) (out http.Header) { + out = make(http.Header) for k, v := range headers { if k == "Origin" { out[k] = slices.Clone(v)