This commit is contained in:
crusader 2018-04-12 11:59:49 +09:00
parent 966138e402
commit 5978f6817e

View File

@ -104,7 +104,7 @@ func (s *RESTServlets) HandlePost(servletCtx server.ServletCtx, ctx *fasthttp.Re
} }
var jsonMap map[string]string 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)) return csw.NewError(fasthttp.StatusBadRequest, fmt.Errorf("Parameter is not valied %v", err))
} }