feat: support post json

This commit is contained in:
debugtalk
2021-09-23 21:53:30 +08:00
parent 2614d22003
commit c446f3bf81
2 changed files with 7 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ func (r *Runner) runStep(step *TStep) error {
v = append(v, req.Header(step.Request.Headers))
v = append(v, req.Param(step.Request.Params))
v = append(v, step.Request.Data)
v = append(v, req.BodyJSON(step.Request.JSON))
for cookieName, cookieValue := range step.Request.Cookies {
v = append(v, &http.Cookie{