Skip to content

Commit

Permalink
acmeserver: Trim slashes from path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Jun 21, 2021
1 parent 885a9aa commit 2de7e14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/caddypki/acmeserver/acmeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ func (ash *Handler) Provision(ctx caddy.Context) error {
// create the router for the ACME endpoints
acmeRouterHandler := acmeAPI.NewHandler(acmeAPI.HandlerOptions{
CA: auth,
DB: acmeDB, // stores all the server state
DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
Prefix: ash.PathPrefix, // used for directory links
DB: acmeDB, // stores all the server state
DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
Prefix: strings.Trim(ash.PathPrefix, "/"), // used for directory links
})

// extract its http.Handler so we can use it directly
Expand Down

0 comments on commit 2de7e14

Please sign in to comment.