diff --git a/servlet/rest-servlet.go b/servlet/rest-servlet.go index 85ff4e8..156d802 100644 --- a/servlet/rest-servlet.go +++ b/servlet/rest-servlet.go @@ -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)) }