forwardemail / forwardemail/superagent

Error with BOM

Open
#1,249 3 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

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

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.