Skip to content

Commit

Permalink
fix: renames onshudown to onShutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Jkarage authored and bsiegert committed Jul 27, 2024
1 parent f115076 commit c2d1215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions safehttp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type Server struct {
// ALPN protocol upgrade or that have been hijacked.
// These functions should start protocol-specific graceful shutdown, but
// should not wait for shutdown to complete.
OnShudown []func()
OnShutdown []func()

// DisableKeepAlives controls whether HTTP keep-alives should be disabled.
DisableKeepAlives bool
Expand Down Expand Up @@ -119,7 +119,7 @@ func (s *Server) buildStd() error {
cfg.PreferServerCipherSuites = true
srv.TLSConfig = cfg
}
for _, f := range s.OnShudown {
for _, f := range s.OnShutdown {
srv.RegisterOnShutdown(f)
}
if s.DisableKeepAlives {
Expand Down

0 comments on commit c2d1215

Please sign in to comment.