fix: check empty upload

This commit is contained in:
buyuxiang
2022-07-12 17:06:02 +08:00
parent 6f1337f309
commit df551d19b7
3 changed files with 4 additions and 3 deletions

View File

@@ -268,7 +268,7 @@ func initUpload(step *TStep) {
}
func prepareUpload(parser *Parser, step *TStep, stepVariables map[string]interface{}) (err error) {
if step.Request.Upload == nil {
if len(step.Request.Upload) == 0 {
return
}
uploadMap, err := parser.Parse(step.Request.Upload, stepVariables)