From 62886c1d8fb6161d360d05804f686c8aa0ac3159 Mon Sep 17 00:00:00 2001 From: Florian Bauer Date: Mon, 12 May 2025 20:39:13 +0200 Subject: [PATCH] fix: strip path prefix for fixing ocsp get requests Signed-off-by: Florian Bauer --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8e01030..92e82e3 100644 --- a/main.go +++ b/main.go @@ -151,7 +151,7 @@ func main() { applicationRouter := http.NewServeMux() applicationRouter.Handle("/ocsp", responder) - applicationRouter.Handle("/ocsp/", responder) + applicationRouter.Handle("/ocsp/", http.StripPrefix("/ocsp/", responder)) applicationRouter.HandleFunc("/crl", func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/pkix-crl") w.Write(crl.Raw)