diff --git a/api/handler.tpl b/api/handler.tpl index 772768b..b7067ad 100644 --- a/api/handler.tpl +++ b/api/handler.tpl @@ -15,7 +15,7 @@ func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { {{if .TransErr}}const transErr = true{{else}}const transErr = false{{end}} {{if .HasRequest}}var req types.{{.RequestType}} - if err := httpx.Parse(r, &req, true); err != nil { + if err := httpx.Parse(r, &req); err != nil { statusz.ResponseHandler(r, w, transErr, nil, err) return }