Commit a3347f7 1 parent e6ec36d commit a3347f7 Copy full SHA for a3347f7
File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2773,6 +2773,8 @@ component {
2773
2773
if ( variables .framework .enableJSONPOST ) {
2774
2774
// thanks to Adam Tuttle and by proxy Jason Dean and Ray Camden for the
2775
2775
// seed of this code, inspired by Taffy's basic deserialization
2776
+ // also thanks to John Whish for the URL-encoded form support
2777
+ // which adds support for PUT etc
2776
2778
var body = httpData .content ;
2777
2779
if ( isBinary ( body ) ) body = charSetEncode ( body , " utf-8" );
2778
2780
if ( len ( body ) ) {
@@ -2790,7 +2792,7 @@ component {
2790
2792
case " application/x-www-form-urlencoded" :
2791
2793
try {
2792
2794
var paramPairs = listToArray ( body , " &" );
2793
- for (var pair in paramPairs ) {
2795
+ for ( var pair in paramPairs ) {
2794
2796
var parts = listToArray ( pair , " =" , true ); // handle blank values
2795
2797
request .context [ parts [ 1 ] ] = urlDecode ( parts [ 2 ] );
2796
2798
}
You can’t perform that action at this time.
0 commit comments