1
0
Fork 0
mirror of synced 2024-09-10 14:35:47 +12:00

Improve parsing of REST query strings to support equals symbol in values

This commit is contained in:
Andrew Kingston 2022-02-28 16:23:53 +00:00
parent 2e4cfb3312
commit 49053cfe85

View file

@ -30,8 +30,8 @@ export function breakQueryString(qs) {
const params = qs.split("&")
let paramObj = {}
for (let param of params) {
const [key, value] = param.split("=")
paramObj[key] = value
const split = param.split("=")
paramObj[split[0]] = split.slice(1).join("=")
}
return paramObj
}