mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
bfae7f3c9f
* migrating set validator exit to http only and removing from api middleware * fixing ineffassign error * cleaning up middleware * fixing linting * Update validator/rpc/handlers_keymanager.go Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> * Update validator/rpc/handlers_keymanager.go Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> * Update validator/rpc/handlers_keymanager.go Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> * adding more tests based on sammy's comments * radek's feedback * adjusting error codes * one more status change * fixing unit test --------- Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
18 lines
378 B
Go
18 lines
378 B
Go
package server
|
|
|
|
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
|
|
}
|
|
}
|