mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24:58 +00:00
Update http.js
This commit is contained in:
parent
e4d076bd47
commit
ba33419c67
10
lib/http.js
10
lib/http.js
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user