1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

acmeserver: Trim slashes from path prefix

See https://caddy.community/t/mtls-tls-internal-error/12807
This commit is contained in:
Matthew Holt 2021-06-21 11:56:41 -06:00
parent 885a9aaf48
commit 2de7e14e1c
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -152,7 +152,7 @@ func (ash *Handler) Provision(ctx caddy.Context) error {
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
Prefix: strings.Trim(ash.PathPrefix, "/"), // used for directory links
})
// extract its http.Handler so we can use it directly