mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
Update http.js
This commit is contained in:
parent
3a565759be
commit
c634a4dba3
|
@ -290,7 +290,7 @@ var HTTPObject = function(engine) {
|
||||||
|
|
||||||
this.setMethod(method.toUpperCase()); // set method
|
this.setMethod(method.toUpperCase()); // set method
|
||||||
this.pushState(null, null, url); // push stat
|
this.pushState(null, null, url); // push stat
|
||||||
this.setHeader("User-Agent", (this.userAgent != null ? this.userAgent : "")); // set user agent
|
this.setHeader("User-Agent", (this.userAgent != null ? this.userAgent : "")); // set user agent
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (this.engine == "MSXML") {
|
if (this.engine == "MSXML") {
|
||||||
|
@ -365,8 +365,8 @@ var HTTPObject = function(engine) {
|
||||||
cmd.push(this.cookie);
|
cmd.push(this.cookie);
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.push("-A");
|
cmd.push("-A");
|
||||||
cmd.push((this.userAgent != null ? this.userAgent : ''));
|
cmd.push((this.userAgent != null ? this.userAgent : ''));
|
||||||
|
|
||||||
var pos = url.indexOf('?');
|
var pos = url.indexOf('?');
|
||||||
if (pos > -1) {
|
if (pos > -1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user