This commit is contained in:
jamesgeorge007 2019-09-18 15:10:44 +05:30
parent e4db91e35b
commit d1a2786c7c

View File

@ -517,7 +517,7 @@
value
}) => `${key}=${value}`).join('&')
queryString = queryString === '' ? '' : `?${queryString}`
if(path.indexOf('?') !== -1) {
if(path.includes('?')) {
path = path.slice(0, path.indexOf('?')) + queryString;
} else {
path = path + queryString