followup to r3240, only encode strings
This commit is contained in:
parent
2e86007187
commit
8cba68a55f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue