Skip to content

Commit f4d1d07

Browse files
authored
axios javascript fix: data: '[form]' (#3)
1 parent e00e717 commit f4d1d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/targets/javascript/axios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = function (source, options) {
6969
}
7070
}
7171

72-
code.push('const options = %s;', stringifyObject(reqOpts, { indent: ' ', inlineCharacterLimit: 80 }).replace('"[form]"', 'form'))
72+
code.push('const options = %s;', stringifyObject(reqOpts, { indent: ' ', inlineCharacterLimit: 80 }).replace("'[form]'", 'form'))
7373
.blank()
7474

7575
code.push(util.format('axios.request(options).then(%s', 'function (response) {'))

0 commit comments

Comments
 (0)