utf-8 handling in router

This commit is contained in:
Leo Horie 2016-05-13 07:02:32 -04:00
parent f4c1d4a998
commit d8a402f4f5
7 changed files with 117 additions and 101 deletions

View file

@ -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) : ""))
}
}