Skip to content

Commit 1c92452

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

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
@@ -12,7 +12,7 @@
1212

1313
let CodeBuilder = require('../../helpers/code-builder')
1414

15-
const contentBodyFactory = function (contentType, postData, includeFS = false) {
15+
function contentBodyFactory(contentType, postData, includeFS = false) {
1616
switch (contentType) {
1717
case 'application/x-www-form-urlencoded':
1818
return [postData.paramsObj, includeFS]
@@ -72,7 +72,7 @@ module.exports = function (source, options) {
7272
};
7373
const { postData } = source
7474
const { mimeType } = postData
75-
const [data, includeFS] = this.contentBodyFactory(mimeType, postData)
75+
const [data, includeFS] = contentBodyFactory(mimeType, postData)
7676
if (data) {
7777
requestOptions['data'] = data
7878
}

0 commit comments

Comments
 (0)