EncodeURI for p value

This commit is contained in:
斟酌 鵬兄 2019-01-25 15:12:00 +08:00
parent 47c7513937
commit 08d10e9c88

2
api.js
View File

@ -79,7 +79,7 @@ BotanJS.prototype.compile = function( type )
return;
}
var suri = conf.serviceUri + type + "/" + data.toString( "base64" )
var suri = conf.serviceUri + type + "/?p=" + encodeURIComponent( data.toString( "base64" ) );
var req = http.get(
suri
, function( res )