chore: go fixes

This commit is contained in:
2026-05-14 13:38:42 +02:00
parent 25ac7f20ad
commit a47497f822

View File

@@ -5,6 +5,7 @@ import (
"io" "io"
"mal/internal/domain" "mal/internal/domain"
"mal/pkg/net/proxytransport" "mal/pkg/net/proxytransport"
"maps"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"
@@ -72,9 +73,7 @@ func (h *PlaybackHandler) HandleWatchPage(c *gin.Context) {
"User": user, "User": user,
"CurrentPath": c.Request.URL.Path, "CurrentPath": c.Request.URL.Path,
} }
for k, v := range data { maps.Copy(responseData, data)
responseData[k] = v
}
c.HTML(http.StatusOK, "watch.gohtml", responseData) c.HTML(http.StatusOK, "watch.gohtml", responseData)
} }