File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,7 @@ var ajax = function ajax(options) {
79
79
80
80
request . open ( options . type , options . url ) ;
81
81
request . setRequestHeader ( 'content-type' , options . contentType ) ;
82
-
83
- request . send ( options . data . data && 'data=' + options . data . data ) ;
82
+ request . send ( options . data . data && 'data=' + encodeURIComponent ( options . data . data ) ) ;
84
83
85
84
return {
86
85
abort : function abort ( reason ) {
Original file line number Diff line number Diff line change 39
39
"scripts" : {
40
40
"build" : " babel src --presets babel-preset-es2015 --out-dir build"
41
41
},
42
- "version" : " 0.1.8 "
42
+ "version" : " 0.1.9 "
43
43
}
Original file line number Diff line number Diff line change @@ -78,8 +78,7 @@ const ajax = function(options) {
78
78
request . withCredentials = options . xhrFields . withCredentials ;
79
79
request . open ( options . type , options . url ) ;
80
80
request . setRequestHeader ( 'content-type' , options . contentType ) ;
81
-
82
- request . send ( options . data . data && `data=${ options . data . data } ` ) ;
81
+ request . send ( options . data . data && `data=${ encodeURIComponent ( options . data . data ) } ` ) ;
83
82
84
83
return {
85
84
abort : function ( reason ) {
You can’t perform that action at this time.
0 commit comments