fix(backend): fixed an issue where the HTTP node body did not take effect when it was formdata type
This commit is contained in:
parent
31621542c8
commit
b46a0c6c12
|
|
@ -1394,10 +1394,11 @@ func toHttpRequesterSchema(n *vo.Node, opts ...OptionFn) (*compose.NodeSchema, e
|
|||
formDataVars := make([]string, 0)
|
||||
for i := range inputs.Body.BodyData.FormData.Data {
|
||||
p := inputs.Body.BodyData.FormData.Data[i]
|
||||
formDataVars = append(formDataVars, p.Name)
|
||||
if p.Input.Type == vo.VariableTypeString && p.Input.AssistType > vo.AssistTypeNotSet && p.Input.AssistType < vo.AssistTypeTime {
|
||||
bodyConfig.FormDataConfig.FileTypeMapping[p.Name] = true
|
||||
formDataVars = append(formDataVars, p.Name)
|
||||
}
|
||||
|
||||
}
|
||||
md5FieldMapping.SetBodyFields(formDataVars...)
|
||||
case httprequester.BodyTypeRawText:
|
||||
|
|
|
|||
Loading…
Reference in New Issue