change: update docs

This commit is contained in:
xucong053
2022-07-04 14:59:02 +08:00
parent fac75e2be3
commit f1898629ed
16 changed files with 31 additions and 25 deletions
@@ -1,4 +1,4 @@
# NOTE: Generated By hrp v4.1.4, DO NOT EDIT!
# NOTE: Generated By hrp v4.1.5, DO NOT EDIT!
import sys
import os
@@ -1,4 +1,4 @@
// NOTE: Generated By hrp v4.1.4, DO NOT EDIT!
// NOTE: Generated By hrp v4.1.5, DO NOT EDIT!
package main
import (
+4 -7
View File
@@ -271,14 +271,11 @@ func prepareUpload(parser *Parser, step *TStep, stepVariables map[string]interfa
if step.Request.Upload == nil {
return
}
uploadSlice := map[string]interface{}{}
for key, value := range step.Request.Upload {
uploadSlice[key], err = parser.Parse(value, stepVariables)
if err != nil {
return
}
uploadMap, err := parser.Parse(step.Request.Upload, stepVariables)
if err != nil {
return
}
stepVariables["m_upload"] = uploadSlice
stepVariables["m_upload"] = uploadMap
mEncoder, err := parser.Parse("${multipart_encoder($m_upload)}", stepVariables)
if err != nil {
return