Skip to content

Commit 67efaac

Browse files
author
Sefi Krausz
committed
changes to axios target
1 parent 1a69059 commit 67efaac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/targets/node/axios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const contentBodyFactory = function (contentType, postData, includeFS = false) {
4545
if (postData.text) {
4646
return [postData.text, includeFS]
4747
}
48-
return null
48+
return [null, includeFS]
4949
}
5050

5151
}
@@ -72,7 +72,7 @@ module.exports = function (source, options) {
7272
};
7373
const { postData } = source
7474
const { mimeType } = postData
75-
const [data, includeFS] = contentBodyFactory(mimeType, postData)
75+
const [data, includeFS] = this.contentBodyFactory(mimeType, postData)
7676
if (data) {
7777
requestOptions['data'] = data
7878
}

0 commit comments

Comments
 (0)