ing
This commit is contained in:
parent
966138e402
commit
5978f6817e
|
@ -104,7 +104,7 @@ func (s *RESTServlets) HandlePost(servletCtx server.ServletCtx, ctx *fasthttp.Re
|
|||
}
|
||||
|
||||
var jsonMap map[string]string
|
||||
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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user