forwardemail / forwardemail/superagent

Using attach results in "The head content contains invalid characters"

Open
#1,440 5 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

Hey, I am trying to attach a file to a request.
```
let stream = fs.createReadStream(f);
r.attach('something', stream);
```

Gives me a seemingly unhandlable error `The header content contains invalid characters`.

Unrelated but I had the same error with `set` when i passed it a hash and ended up being forced to call it for each key value pair.

I'm in node, not a browser.

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.