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