Change treatment of space character in URLs

jQuery changed it from using '+' to '%20' between
versions 1 and 3. This updates the test to match.
This commit is contained in:
Tom Byers
2019-11-08 14:15:41 +00:00
parent 2b5ba5f438
commit 47781cc929

View File

@@ -13,9 +13,7 @@ function getFormDataFromPairs (pairs) {
});
// Combine the pairs into a single string and replace all %-encoded spaces to
// the '+' character; matches the behaviour of browser form submissions.
return urlEncodedDataPairs.join('&').replace(/%20/g, '+');
return urlEncodedDataPairs.join('&');
};