revert r2999 (no need to encode '%' if we can properly decode it)

This commit is contained in:
rlx 2013-08-14 19:03:40 +00:00
parent 51215c1cbe
commit 08256a078f

View file

@ -568,7 +568,7 @@ Ox.URL = function(options) {
function encodeValue(value) { function encodeValue(value) {
// var chars = '/&|()=*:'; // var chars = '/&|()=*:';
var chars = '&|()=*%', var chars = '&|()=*',
ret = ''; ret = '';
value.toString().split('').forEach(function(char) { value.toString().split('').forEach(function(char) {
var index = chars.indexOf(char); var index = chars.indexOf(char);