mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
18 lines
379 B
Go
18 lines
379 B
Go
package helpers
|
|
|
|
import (
|
|
"net/url"
|
|
"strings"
|
|
)
|
|
|
|
// NormalizeQueryValues replaces comma-separated values with individual values
|
|
func NormalizeQueryValues(queryParams url.Values) {
|
|
for key, vals := range queryParams {
|
|
splitVals := make([]string, 0)
|
|
for _, v := range vals {
|
|
splitVals = append(splitVals, strings.Split(v, ",")...)
|
|
}
|
|
queryParams[key] = splitVals
|
|
}
|
|
}
|