optimization code
This commit is contained in:
parent
1d2bbcd22f
commit
c4a12f9314
|
@ -194,11 +194,10 @@ func (wf *Workflow) SetBody(params ...interface{}) *Workflow {
|
||||||
if plen >= 2 {
|
if plen >= 2 {
|
||||||
t := params[plen-1]
|
t := params[plen-1]
|
||||||
defaultContentType = t.(string)
|
defaultContentType = t.(string)
|
||||||
wf.Body.SetPrefix(defaultContentType)
|
|
||||||
} else {
|
|
||||||
wf.Body.SetPrefix(defaultContentType)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wf.Body.SetPrefix(defaultContentType)
|
||||||
|
|
||||||
if defaultContentType == TypeFormData {
|
if defaultContentType == TypeFormData {
|
||||||
createMultipart(wf.Body, params)
|
createMultipart(wf.Body, params)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user