Skip to content

Commit

Permalink
fix(hz): miss bracket for client template (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
FGYFFFF authored May 15, 2023
1 parent 7660908 commit 2d7010d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/hz/generator/package_tpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ func parseResponseBody(c *cli, res *response) (err error) {
}
} else {
jsonByte, jsonErr := json.Marshal(map[string]interface{}{
"status_code": res.rawResponse.StatusCode,
"status_code": res.rawResponse.StatusCode(),
"body": string(res.bodyByte),
})
if jsonErr != nil {
Expand Down

0 comments on commit 2d7010d

Please sign in to comment.