Browse Source

acmeserver: Trim slashes from path prefix

See https://caddy.community/t/mtls-tls-internal-error/12807
master
Matthew Holt 4 years ago
parent
commit
2de7e14e1c
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 2
      modules/caddypki/acmeserver/acmeserver.go

2
modules/caddypki/acmeserver/acmeserver.go

@ -152,7 +152,7 @@ func (ash *Handler) Provision(ctx caddy.Context) error {
CA: auth, CA: auth,
DB: acmeDB, // stores all the server state DB: acmeDB, // stores all the server state
DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca) DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
Prefix: ash.PathPrefix, // used for directory links Prefix: strings.Trim(ash.PathPrefix, "/"), // used for directory links
}) })
// extract its http.Handler so we can use it directly // extract its http.Handler so we can use it directly

Loading…
Cancel
Save