diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-01-10 16:59:57 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-01-10 17:00:57 -0700 |
commit | d418e319ab626e4b7dab676a7db3405d24a4b58c (patch) | |
tree | afb70e96efc72b84cc0566a406ce9f20c7be3711 /modules/caddyhttp/rewrite/caddyfile.go | |
parent | ba514f9660519c0ddee3eefdbe9c9ed4a3ba5c7f (diff) |
rewrite: Rename parameters; implement custom query string parser
Our new parser also preserves original parameter order, rather than
re-encoding using the std lib (which sorts).
The renamed parameters are a breaking change but they're new enough
that I don't think anyone is using them.
Diffstat (limited to 'modules/caddyhttp/rewrite/caddyfile.go')
-rw-r--r-- | modules/caddyhttp/rewrite/caddyfile.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/rewrite/caddyfile.go b/modules/caddyhttp/rewrite/caddyfile.go index 532df9a..368db15 100644 --- a/modules/caddyhttp/rewrite/caddyfile.go +++ b/modules/caddyhttp/rewrite/caddyfile.go @@ -58,7 +58,7 @@ func parseCaddyfileStripPrefix(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHand if !h.NextArg() { return nil, h.ArgErr() } - rewr.StripPathPrefix = h.Val() + rewr.StripPrefix = h.Val() if h.NextArg() { return nil, h.ArgErr() } @@ -77,7 +77,7 @@ func parseCaddyfileStripSuffix(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHand if !h.NextArg() { return nil, h.ArgErr() } - rewr.StripPathSuffix = h.Val() + rewr.StripSuffix = h.Val() if h.NextArg() { return nil, h.ArgErr() } |