This commit is contained in:
crusader 2018-03-14 20:17:10 +09:00
parent dfb3b53775
commit 3b15bbd349

View File

@ -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
} }