From c634a4dba345dfa0d7da6463eb684e3b69d08fc0 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 13 Jan 2022 17:47:20 +0900 Subject: [PATCH] Update http.js --- lib/http.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/http.js b/lib/http.js index 1376349..9b0381f 100644 --- a/lib/http.js +++ b/lib/http.js @@ -290,7 +290,7 @@ var HTTPObject = function(engine) { this.setMethod(method.toUpperCase()); // set method 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 { if (this.engine == "MSXML") { @@ -365,8 +365,8 @@ var HTTPObject = function(engine) { cmd.push(this.cookie); } - cmd.push("-A"); - cmd.push((this.userAgent != null ? this.userAgent : '')); + cmd.push("-A"); + cmd.push((this.userAgent != null ? this.userAgent : '')); var pos = url.indexOf('?'); if (pos > -1) {