utf-8 handling in router
This commit is contained in:
parent
f4c1d4a998
commit
d8a402f4f5
7 changed files with 117 additions and 101 deletions
|
|
@ -20,6 +20,6 @@ module.exports = function buildQueryString(object) {
|
|||
destructure(key + "[" + i + "]", value[i])
|
||||
}
|
||||
}
|
||||
else args.push(encodeURIComponent(key) + "=" + (value != null ? encodeURIComponent(value) : ""))
|
||||
else args.push(encodeURIComponent(key) + (value != null && value !== "" ? "=" + encodeURIComponent(value) : ""))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue