Skip to content

Commit

Permalink
caddyhttp: Fix linter warning about deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Apr 27, 2024
1 parent a46ff50 commit 2fc620d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/server.go
Expand Up @@ -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))
}
Expand Down

0 comments on commit 2fc620d

Please sign in to comment.