Skip to content

Commit 710425f

Browse files
committed
fix issue #356 http request POST
1 parent 64ef5f7 commit 710425f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/js/modules/http/request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ http.request( {
5151
5252
***/
5353

54-
/*global exports, encodeURI, server, __plugin, setTimeout*/
54+
/*global exports, encodeURIComponent, server, __plugin, setTimeout*/
5555
function paramsToString( params ) {
5656
var result = '',
5757
paramNames = [],
@@ -60,7 +60,7 @@ function paramsToString( params ) {
6060
paramNames.push( i );
6161
}
6262
for ( i = 0; i < paramNames.length; i++ ) {
63-
result += paramNames[i] + '=' + encodeURI( params[ paramNames[i] ] );
63+
result += paramNames[i] + '=' + encodeURIComponent( params[ paramNames[i] ] );
6464
if ( i < paramNames.length-1 )
6565
result += '&';
6666
}

0 commit comments

Comments
 (0)