mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-28 10:31:04 +00:00
Update http.js
This commit is contained in:
parent
1f7217324c
commit
0ef86196d8
|
|
@ -324,7 +324,7 @@ var HTTPObject = function(engine) {
|
||||||
|
|
||||||
this.setMethod(method.toUpperCase()); // set method
|
this.setMethod(method.toUpperCase()); // set method
|
||||||
this.pushState(null, null, url); // push state
|
this.pushState(null, null, url); // push state
|
||||||
this.setHeader("User-Agent", (this.userAgent != null ? this.userAgent : '')); // user agent
|
this.setHeader("User-Agent", (this.userAgent != null ? this.evaluate(this.userAgent) : '')); // user agent
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (this.engine == "MSXML") {
|
if (this.engine == "MSXML") {
|
||||||
|
|
@ -417,7 +417,7 @@ var HTTPObject = function(engine) {
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.push("-A");
|
cmd.push("-A");
|
||||||
cmd.push((this.userAgent != null ? this.userAgent : ''));
|
cmd.push((this.userAgent != null ? this.evaluate(this.userAgent) : ''));
|
||||||
|
|
||||||
// --connect-timeout
|
// --connect-timeout
|
||||||
if (this.connectTimeout > 0) {
|
if (this.connectTimeout > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user