From a96052ce2735308ab751c362f654796a31aa901c Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 22 May 2024 18:34:45 +0900 Subject: [PATCH] Update http.js --- lib/http.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/http.js b/lib/http.js index 11bc115..0e7bc7d 100644 --- a/lib/http.js +++ b/lib/http.js @@ -73,8 +73,8 @@ var HTTPObject = function(engine) { this.charset = FILE.CdoCharset.CdoUTF_8; this.isUseCharsetDetector = false; - this.isVerifySSL = true; + this.isCompressedResponse = false; this.create = function() { if (this.engine == "MSXML") { @@ -456,6 +456,10 @@ var HTTPObject = function(engine) { cmd.push("-v"); } + if (this.isCompressedResponse) { + cmd.push("--compressed"); + } + if (this.isFollowRedirect) { cmd.push("-L"); } @@ -973,6 +977,11 @@ var HTTPObject = function(engine) { return this.detectSSL() && (this.debuggingText.indexOf("certificate problem") < 0); }; + this.setIsCompressedResponse = function(isCompressedResponse) { + this.isCompressedResponse = isCompressedResponse; + return this; + }; + this.create(); }; @@ -1037,7 +1046,7 @@ exports._delete = _delete; exports.parseURL = parseURL; exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT; -exports.VERSIONINFO = "HTTP request module (http.js) version 0.7.15"; +exports.VERSIONINFO = "HTTP request module (http.js) version 0.7.17"; exports.AUTHOR = "abuse@catswords.net"; exports.global = global; exports.require = global.require;