mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
minor
This commit is contained in:
parent
8cf891ff25
commit
516348e354
|
@ -1531,7 +1531,10 @@ func (ctx *Context) URLParamSlice(name string) []string {
|
||||||
return values
|
return values
|
||||||
}
|
}
|
||||||
|
|
||||||
sepPtr := ctx.app.ConfigurationReadOnly().GetURLParamSeparator()
|
var sep string
|
||||||
|
if sepPtr := ctx.app.ConfigurationReadOnly().GetURLParamSeparator(); sepPtr != nil {
|
||||||
|
sep = *sepPtr
|
||||||
|
}
|
||||||
|
|
||||||
normalizedValues := make([]string, 0, n)
|
normalizedValues := make([]string, 0, n)
|
||||||
for _, v := range values {
|
for _, v := range values {
|
||||||
|
@ -1539,13 +1542,11 @@ func (ctx *Context) URLParamSlice(name string) []string {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if sepPtr != nil {
|
if sep != "" {
|
||||||
if sep := *sepPtr; sep != "" {
|
|
||||||
values := strings.Split(v, sep)
|
values := strings.Split(v, sep)
|
||||||
normalizedValues = append(normalizedValues, values...)
|
normalizedValues = append(normalizedValues, values...)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
normalizedValues = append(normalizedValues, v)
|
normalizedValues = append(normalizedValues, v)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user