ing
This commit is contained in:
parent
5978f6817e
commit
87b2609eb0
|
@ -103,7 +103,7 @@ func (s *RESTServlets) HandlePost(servletCtx server.ServletCtx, ctx *fasthttp.Re
|
||||||
return csw.NewError(fasthttp.StatusBadRequest, fmt.Errorf("Parameter is not valied"))
|
return csw.NewError(fasthttp.StatusBadRequest, fmt.Errorf("Parameter is not valied"))
|
||||||
}
|
}
|
||||||
|
|
||||||
var jsonMap map[string]string
|
var jsonMap map[string]json.RawMessage
|
||||||
if err := json.Unmarshal(buf, &jsonMap); nil != err {
|
if err := json.Unmarshal(buf, &jsonMap); nil != err {
|
||||||
return csw.NewError(fasthttp.StatusBadRequest, fmt.Errorf("Parameter is not valied %v", err))
|
return csw.NewError(fasthttp.StatusBadRequest, fmt.Errorf("Parameter is not valied %v", err))
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ func (s *RESTServlets) HandlePost(servletCtx server.ServletCtx, ctx *fasthttp.Re
|
||||||
if !ok {
|
if !ok {
|
||||||
return csw.NewError(fasthttp.StatusBadRequest, fmt.Errorf("Parameter for %s is not valied", k))
|
return csw.NewError(fasthttp.StatusBadRequest, fmt.Errorf("Parameter for %s is not valied", k))
|
||||||
}
|
}
|
||||||
params = append(params, v)
|
params = append(params, string(v))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user