aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/rewrite/caddyfile.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/rewrite/caddyfile.go')
-rw-r--r--modules/caddyhttp/rewrite/caddyfile.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/caddyhttp/rewrite/caddyfile.go b/modules/caddyhttp/rewrite/caddyfile.go
index 89f44c79b..5f9b97adf 100644
--- a/modules/caddyhttp/rewrite/caddyfile.go
+++ b/modules/caddyhttp/rewrite/caddyfile.go
@@ -110,9 +110,6 @@ func parseCaddyfileURI(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, err
return nil, h.ArgErr()
}
rewr.StripPathPrefix = args[1]
- if !strings.HasPrefix(rewr.StripPathPrefix, "/") {
- rewr.StripPathPrefix = "/" + rewr.StripPathPrefix
- }
case "strip_suffix":
if len(args) != 2 {