fix: strip path prefix for fixing ocsp get requests
Signed-off-by: Florian Bauer <florian@fsrv.xyz>
This commit is contained in:
2
main.go
2
main.go
@@ -151,7 +151,7 @@ func main() {
|
|||||||
|
|
||||||
applicationRouter := http.NewServeMux()
|
applicationRouter := http.NewServeMux()
|
||||||
applicationRouter.Handle("/ocsp", responder)
|
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) {
|
applicationRouter.HandleFunc("/crl", func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "application/pkix-crl")
|
w.Header().Set("Content-Type", "application/pkix-crl")
|
||||||
w.Write(crl.Raw)
|
w.Write(crl.Raw)
|
||||||
|
|||||||
Reference in New Issue
Block a user