forwardemail / forwardemail/superagent

superagent adding invalid characters on a post request on IE11

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

Description

Hello,

Following is my code
id = 1234556
startDate=2-2-2018
endDate=2-11-2018

export function getDataByDate(id, startDate, endDate) {
return (dispatch) => {
const url = '/api/getDataByDate/v1';
request.post(url)
.type('application/json')
.send({ id,
startDate,
endDate }).use(nocache)
.end((err, res) => {
if (err) throw err;
dispatch(receivedData(res.body));
});
};
}

When I see the network traffic it shows as
{"id":"43491486","startDate":"?2?-?6?-?2018","endDate":"?2?-?12?-?2018"}

Why superagent is adding these special characters to the request on IE11. This code works fine on chrome. Is there any special thing I need to add to request for string's having special character in request for IE11.

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.