mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 13:41:05 +00:00
Update http.js
This commit is contained in:
parent
1ae2c7a814
commit
3f786a3faf
|
@ -279,9 +279,11 @@ var HTTPObject = function(engine) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.open = function(method, url) {
|
this.open = function(method, url) {
|
||||||
|
var url = this.serializeParameters(url);
|
||||||
|
|
||||||
this.setMethod(method.toUpperCase()); // set method
|
this.setMethod(method.toUpperCase()); // set method
|
||||||
this.setHeader("User-Agent", (this.userAgent != null ? this.userAgent : '')); // set user agent
|
this.setHeader("User-Agent", (this.userAgent != null ? this.userAgent : '')); // set user agent
|
||||||
this.pushState(null, null, this.serializeParameters(url)); // push state
|
this.pushState(null, null, url); // push state
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (this.engine == "MSXML") {
|
if (this.engine == "MSXML") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user