Skip to content

Commit bd5cc25

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

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
@@ -68,7 +68,6 @@ module.exports = function (source, options) {
6868
},
6969
params: Object.keys(source.queryObj).length ? source.queryObj : undefined,
7070
url: `${source.url}`
71-
7271
};
7372
const { postData } = source
7473
const { mimeType } = postData
@@ -80,7 +79,8 @@ module.exports = function (source, options) {
8079
code.unshift('const fs = require("fs");')
8180
}
8281
code.push(`axios(${
83-
JSON.stringify(requestOptions)
82+
JSON.stringify(requestOptions).replace(/"{"/, `{
83+
`)
8484
})
8585
.then((response)=>{
8686
console.log(response)

0 commit comments

Comments
 (0)