feat: post json with functions

This commit is contained in:
debugtalk
2021-10-03 22:56:22 +08:00
parent a221afb51d
commit 0a96da2f41
2 changed files with 16 additions and 6 deletions

View File

@@ -114,7 +114,8 @@ func (r *Runner) runStepRequest(step *TStep) (stepData *StepData, err error) {
v = append(v, data)
}
if step.Request.JSON != nil {
v = append(v, req.BodyJSON(step.Request.JSON))
jsonData := parseData(step.Request.JSON, step.Variables)
v = append(v, req.BodyJSON(jsonData))
}
for cookieName, cookieValue := range step.Request.Cookies {