Skip to content

Commit 86c52ba

Browse files
committed
fix: setting the form-data boundary when under node
1 parent 346db58 commit 86c52ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ HTTPSnippet.prototype.prepare = function (request) {
125125

126126
// easter egg
127127
const boundary = '---011000010111000001101001'
128+
if (!isNativeFormData) {
129+
form._boundary = boundary;
130+
}
128131

129132
request.postData.params.forEach(function (param) {
130133
if (isNativeFormData) {

0 commit comments

Comments
 (0)