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)