- if (config.headers && config.headers.Destination) {
- const regexp = /(http[s]?:\/\/)?([^\/\s]+\/)(.*)/;
- const match = decodeURIComponent(config.headers.Destination).match(regexp) || {};
- config.headers.Destination = `${match[1]}${match[2]}${customEncodeURI(match[3])}`;
- }
-