Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto authored and knative-prow-robot committed Oct 23, 2023
1 parent 2ff4c3b commit ea1ca18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func (wh *Webhook) Run(stop <-chan struct{}) error {
QuietPeriod: wh.Options.GracePeriod,
}

// If TLSNextProto is not nil, HTTP/2 support is not enabled automatically.
nextProto := map[string]func(*http.Server, *tls.Conn, http.Handler){}
if wh.Options.EnableHTTP2 {
nextProto = nil
Expand Down

0 comments on commit ea1ca18

Please sign in to comment.