diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-01-22 09:36:05 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-01-22 09:36:05 -0700 |
commit | 0742530d3d8c602c5d42115606ae0e05b577f3e9 (patch) | |
tree | 67e468679b67df527e2cbb76950fc639553b7ea2 /modules/caddyhttp/templates/tplcontext_test.go | |
parent | 6b6cd934d02476e3d71b85edbb0acf58cf299fec (diff) |
rewrite: Prepend "/" if missing from strip path prefix
Paths always begin with a slash, and omitting the leading slash could be
convenient to avoid confusion with a path matcher in the Caddyfile. I do
not think there would be any harm to implicitly add the leading slash.
Diffstat (limited to 'modules/caddyhttp/templates/tplcontext_test.go')
0 files changed, 0 insertions, 0 deletions