Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 06:00 UTC
caddyhttp: demote Alt-Svc ErrNoAltSvcPort to debug level (#8000)
Jens-Uwe Mager committed
Sep 8, 2026 at 05:26 UTC
c8f0667aeebaf30708a0ae14716b326e58f9428a
1 file changed
+5
-1
modules/caddyhttp/server.go
+5
-1
@@ -620,7 +620,11 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
620
// advertise HTTP/3, if enabled
621
if s.h3server != nil && r.ProtoMajor < 3 {
622
if err := s.h3server.SetQUICHeaders(h); err != nil {
623
- if c := s.logger.Check(zapcore.ErrorLevel, "setting HTTP/3 Alt-Svc header"); c != nil {
623
+ lvl := zapcore.ErrorLevel
624
+ if errors.Is(err, http3.ErrNoAltSvcPort) {
625
+ lvl = zapcore.DebugLevel
626
+ }
627
+ if c := s.logger.Check(lvl, "setting HTTP/3 Alt-Svc header"); c != nil {
628
c.Write(zap.Error(err))
629
}
630
}