followup to r3240, only encode strings

This commit is contained in:
j 2014-02-04 09:49:09 +00:00
parent 2e86007187
commit 8cba68a55f

View file

@ -475,7 +475,9 @@ Ox.URL = function(options) {
var obj = {};
if (hash.query) {
hash.query.forEach(function(condition) {
obj[encodeValue(condition.key)] = encodeValue(condition.value);
obj[encodeValue(condition.key)] = Ox.isString(condition.value)
? encodeValue(condition.value)
: condition.value;
});
}
return hash.anchor || hash.query