Skip to content

Commit

Permalink
receiver: Use new ServeMux
Browse files Browse the repository at this point in the history
Use its own ServeMux.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
  • Loading branch information
darkowlzz committed Dec 1, 2022
1 parent 97ac454 commit ac17d75
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 ac17d75

Please sign in to comment.