Update http.js

This commit is contained in:
Namhyeon Go 2022-05-20 18:44:41 +09:00 committed by GitHub
parent 1f7217324c
commit 0ef86196d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {