Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Content-Type: undefined" when I do not set the content type #67

Open
PeterlitsZo opened this issue Jan 11, 2024 · 0 comments
Open

"Content-Type: undefined" when I do not set the content type #67

PeterlitsZo opened this issue Jan 11, 2024 · 0 comments

Comments

@PeterlitsZo
Copy link

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...
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant