cmd/pkgserver: minimum viable frontend

This commit is contained in:
mae
2026-03-10 03:31:14 -05:00
parent 35d76c5d2b
commit 52a4e5b87d
8 changed files with 217 additions and 63 deletions

View File

@@ -122,7 +122,6 @@ func WritePayload(w http.ResponseWriter, payload any) {
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
w.Header().Set("Pragma", "no-cache")
w.Header().Set("Expires", "0")
w.WriteHeader(http.StatusOK)
err := json.NewEncoder(w).Encode(payload)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)