Closed PeterlitsZo closed 4 months ago
When I do not set the content type, like this:
let resp = await axios.post(baseUrl + '/page/init', data, { headers: { 'nuwa-wings': 'env=osim232-v', } })
The generated cURL code will be like:
curl -X POST -H "Accept:application/json, text/plain, */*" -H "Content-Type:undefined" -H "nuwa-wings:env=osim232-v" ...
The package.json is:
{ "dependencies": { "axios": "^1.6.2", "axios-curlirize": "^2.0.0", // etc... } }
Should omit all undefined values including params
params
When I do not set the content type, like this:
The generated cURL code will be like:
The package.json is: