mirror of
https://github.com/1f349/violet.git
synced 2024-11-21 10:51:40 +00:00
Forgot to make the map
This commit is contained in:
parent
8aa82303ce
commit
f442409ebf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user