forwardemail / forwardemail/superagent
Error with BOM
Open
- Dominant language
- JavaScript
- Stars
- 16.6k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
When making a POST request from the server and getting a JSON with BOM (first character is '0xFEFF'), the response leads to an error.
There's a way of handling this, by using .parse(fn) where this function is parsing and strips the BOM character, but isn't there a better way of doing this?
(BTW, I just moved to 3.5.2 where this issue began. In version 1.2.0 it was working without any problems)
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.