diff --git a/chrome_point_plus/js/bquery_ajax.js b/chrome_point_plus/js/bquery_ajax.js index 44f1c8d..553c39c 100644 --- a/chrome_point_plus/js/bquery_ajax.js +++ b/chrome_point_plus/js/bquery_ajax.js @@ -4,7 +4,10 @@ function $ajax_prot(settings){ if (settings['async'] !==undefined){this.async =settings['async'];} if (settings['type'] !==undefined){this.type =settings['type'];} if (settings['postdata']!==undefined){this.postdata=settings['postdata'];} - + if (settings['dont_set_content_type']!==undefined){ + this.dont_set_content_type=settings['dont_set_content_type']; + } + this.xhr=new XMLHttpRequest(); this.xhr.parent =this; this.xhr.settings=settings; @@ -12,7 +15,9 @@ function $ajax_prot(settings){ this.xhr.error =settings['error']; this.xhr.onreadystatechange=this.change; this.xhr.open(this.type, this.url, this.async); - if (this.type=='POST'){this.xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');} + if ((this.type=='POST')&& !this.dont_set_content_type){ + this.xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + } if (settings.headers!==undefined){ for (var i=0;i