mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
caddyhttp: Fix linter warning about deprecation
This commit is contained in:
parent
a46ff50a1c
commit
2fc620d38d
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
// advertise HTTP/3, if enabled
|
// advertise HTTP/3, if enabled
|
||||||
if s.h3server != nil {
|
if s.h3server != nil {
|
||||||
if r.ProtoMajor < 3 {
|
if r.ProtoMajor < 3 {
|
||||||
err := s.h3server.SetQuicHeaders(w.Header())
|
err := s.h3server.SetQUICHeaders(w.Header())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.logger.Error("setting HTTP/3 Alt-Svc header", zap.Error(err))
|
s.logger.Error("setting HTTP/3 Alt-Svc header", zap.Error(err))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue