fixed errors identified by gosec

This commit is contained in:
2026-05-06 19:18:38 -06:00
parent 3f1001f3d4
commit 8a2e6756cc
3 changed files with 17 additions and 6 deletions
+4 -2
View File
@@ -6,6 +6,7 @@ import (
"log/slog"
"net/http"
"os"
"time"
"github.com/ewpt3ch/pkgstash/internal/cache"
)
@@ -65,8 +66,9 @@ func main() {
}
httpServe := &http.Server{
Addr: ":" + srv.cfg.Port,
Handler: mux,
Addr: ":" + srv.cfg.Port,
Handler: mux,
ReadHeaderTimeout: 5 * time.Second,
}
slog.Info("serving pkgstash", "root", cfg.CacheRoot, "port", cfg.Port)