mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +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.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 {
|
||||
if (this.engine == "MSXML") {
|
||||
|
@ -417,7 +417,7 @@ var HTTPObject = function(engine) {
|
|||
}
|
||||
|
||||
cmd.push("-A");
|
||||
cmd.push((this.userAgent != null ? this.userAgent : ''));
|
||||
cmd.push((this.userAgent != null ? this.evaluate(this.userAgent) : ''));
|
||||
|
||||
// --connect-timeout
|
||||
if (this.connectTimeout > 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user