mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Added the ability for the url-encoded-form serializer to respect the formSerializer config; (#4721)
Added test for `formSerializer` config in context of `url-encoded-form` serializer;
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (function getURLSearchParams(nativeURLSearchParams) {
|
||||
if (typeof nativeURLSearchParams === 'function') return nativeURLSearchParams;
|
||||
|
||||
module.exports = typeof URLSearchParams !== 'undefined' ? URLSearchParams : (function defineURLSearchParams() {
|
||||
function encode(str) {
|
||||
var charMap = {
|
||||
'!': '%21',
|
||||
@@ -35,4 +33,4 @@ module.exports = (function getURLSearchParams(nativeURLSearchParams) {
|
||||
};
|
||||
|
||||
return URLSearchParams;
|
||||
})(URLSearchParams);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user