ing
This commit is contained in:
parent
dfb3b53775
commit
3b15bbd349
|
@ -148,6 +148,10 @@ func (src *ServerRequestCodec) Params() ([]string, error) {
|
||||||
|
|
||||||
var results []string
|
var results []string
|
||||||
for _, v := range values {
|
for _, v := range values {
|
||||||
|
switch v := v.(type) {
|
||||||
|
case string:
|
||||||
|
results = append(results, v)
|
||||||
|
default:
|
||||||
b, err := json.Marshal(v)
|
b, err := json.Marshal(v)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
src.err = &Error{
|
src.err = &Error{
|
||||||
|
@ -159,6 +163,7 @@ func (src *ServerRequestCodec) Params() ([]string, error) {
|
||||||
}
|
}
|
||||||
results = append(results, string(b))
|
results = append(results, string(b))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return results, nil
|
return results, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user