diff --git a/internal/server/receiver_server.go b/internal/server/receiver_server.go index 46058091f..0f601710a 100644 --- a/internal/server/receiver_server.go +++ b/internal/server/receiver_server.go @@ -50,7 +50,7 @@ func NewReceiverServer(port string, logger logr.Logger, kubeClient client.Client // ListenAndServe starts the HTTP server on the specified port func (s *ReceiverServer) ListenAndServe(stopCh <-chan struct{}, mdlw middleware.Middleware) { - mux := http.DefaultServeMux + mux := http.NewServeMux() mux.Handle("/hook/", http.HandlerFunc(s.handlePayload())) h := std.Handler("", mdlw, mux) srv := &http.Server{