Update http.js

This commit is contained in:
Namhyeon Go 2023-03-09 11:38:56 +09:00 committed by GitHub
parent e4d076bd47
commit ba33419c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -918,6 +918,14 @@ var HTTPObject = function(engine) {
return charset;
};
this.detectSSL = function() {
return (this.debuggingText.indexOf("certificate") > -1);
};
this.detectSSLCompleted = function() {
return this.detectSSL() && (this.debuggingText.indexOf("certificate problem") > -1);
};
this.create();
};
@ -952,7 +960,7 @@ exports.patch = patch;
exports.put = put;
exports._delete = _delete;
exports.VERSIONINFO = "HTTP Lib (http.js) version 0.7.5";
exports.VERSIONINFO = "HTTP Lib (http.js) version 0.7.6";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;