remove trailing slash when constructing url

This commit is contained in:
rlx 2011-10-08 11:48:14 +00:00
parent 0994a6243f
commit 4d13b8444b

View file

@ -252,7 +252,9 @@ Ox.URL = function(options) {
parts.push(constructFind(state.find));
}
}
return '/' + parts.join('/');
return '/' + Ox.map(parts, function(part) {
return part || null;
}).join('/');
}
function decodeValue(str) {