Patch
All checks were successful
release-tag / release-image (push) Successful in 1m47s

This commit is contained in:
jbergner
2025-04-29 14:43:24 +02:00
parent b9f0caa3ad
commit 08f1c19bc3

View File

@@ -488,6 +488,10 @@ func (s *server) verifyJWS(ctx context.Context, w http.ResponseWriter, r *http.R
func (s *server) ServeHTTP(w http.ResponseWriter, r *http.Request) { func (s *server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
ctx := r.Context() ctx := r.Context()
lg := slog.New(slog.NewJSONHandler(os.Stdout, nil))
slog.SetDefault(lg)
lg.Info("Request", time.Now().Format("2026-12-18 18:06:00"), r.URL.Path)
switch { switch {
case (r.Method == http.MethodHead || r.Method == http.MethodGet) && r.URL.Path == "/acme/new-nonce": case (r.Method == http.MethodHead || r.Method == http.MethodGet) && r.URL.Path == "/acme/new-nonce":
n := uuid.New().String() n := uuid.New().String()