From 55e52b5b2b6879d82f87bc11185c87b800d15f65 Mon Sep 17 00:00:00 2001 From: Cameron McAvoy Date: Wed, 30 Mar 2022 12:37:57 -0500 Subject: [PATCH] Correct the handler used in serving http requests, fixes #188 --- cmd/csi-node-driver-registrar/node_register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/csi-node-driver-registrar/node_register.go b/cmd/csi-node-driver-registrar/node_register.go index a29106541..54ba1f187 100644 --- a/cmd/csi-node-driver-registrar/node_register.go +++ b/cmd/csi-node-driver-registrar/node_register.go @@ -123,7 +123,7 @@ func httpServer(socketPath string, httpEndpoint string) { mux.HandleFunc("/debug/pprof/trace", pprof.Trace) } - klog.Fatal(http.ListenAndServe(httpEndpoint, nil)) + klog.Fatal(http.ListenAndServe(httpEndpoint, mux)) } func removeRegSocket(csiDriverName string) {