mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
change: update docs
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user