We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfbcd5e commit bb7f344Copy full SHA for bb7f344
1 file changed
src/index.js
@@ -127,15 +127,18 @@ HTTPSnippet.prototype.prepare = function (request) {
127
if (request.postData.params) {
128
var form = new MultiPartForm()
129
130
- const { value } = param || ''
131
- form.append(param.name,
132
- typeof value === 'string'
133
- ? new Blob([value])
134
- : value
135
- , {
136
- filename: param.fileName || null,
137
- contentType: param.contentType || null
138
- })
+ request.postData.params.forEach(function (param) {
+ const { value } = param || ''
+ form.append(param.name,
+ typeof value === 'string'
+ ? new Blob([value])
+ : value
+ , {
+ filename: param.fileName || null,
+ contentType: param.contentType || null
139
+ })
140
141
+
142
// form.pipe(es.map(function (data, cb) {
143
// request.postData.text += data
144
// }))
0 commit comments