Skip to content

Commit

Permalink
Merge pull request #448 from fluxcd/receiver-new-servemux
Browse files Browse the repository at this point in the history
receiver: Use new ServeMux
  • Loading branch information
somtochiama authored Dec 1, 2022
2 parents 97ac454 + ac17d75 commit 72a1668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/receiver_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 72a1668

Please sign in to comment.