forwardemail / forwardemail/superagent

Sending POST request resulting in "contentType.split is not a function"

Open
#1,600 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I have no issues with using get requests, but once I add in a post request, it spits out warning saying

```
...node_modules/superagent/lib/node/index.js:981
if (contentType) contentType = contentType.split(';')[0];
^

TypeError: contentType.split is not a function
```

which I find kinda strange since tracing back to index.js, other strings with split function like the ones used in parsing cookies worked ok, dunno if its a bug or did I missed something.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.