mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-22 23:28:35 +00:00
refactor
This commit is contained in:
parent
e4db91e35b
commit
d1a2786c7c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user