mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 08:19:45 +08:00
fix: check empty upload
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user