mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-20 22:52:58 -05:00
replace strings.Split for SplitN
This commit is contained in:
parent
e486c9c6e7
commit
54355d8fb3
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ func To(fs http.FileSystem, r *http.Request, to string, replacer httpserver.Repl
|
|||
query := ""
|
||||
for _, v := range tos {
|
||||
t = replacer.Replace(v)
|
||||
tparts := strings.Split(t, "?")
|
||||
tparts := strings.SplitN(t, "?", 2)
|
||||
t = path.Clean(tparts[0])
|
||||
|
||||
if len(tparts) > 1 {
|
||||
|
|
Loading…
Add table
Reference in a new issue