caddyhttp: Fix linter warning about deprecation

This commit is contained in:
Matthew Holt 2024-04-27 12:41:17 -06:00
parent a46ff50a1c
commit 2fc620d38d
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -272,7 +272,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// advertise HTTP/3, if enabled
if s.h3server != nil {
if r.ProtoMajor < 3 {
err := s.h3server.SetQuicHeaders(w.Header())
err := s.h3server.SetQUICHeaders(w.Header())
if err != nil {
s.logger.Error("setting HTTP/3 Alt-Svc header", zap.Error(err))
}