mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 21:26:04 +00:00
Update http.js
This commit is contained in:
parent
390fca7ad5
commit
2a90d80156
14
lib/http.js
14
lib/http.js
|
@ -776,16 +776,8 @@ var HTTPObject = function(engine) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "MITMPROXY":
|
case "MITMPROXY":
|
||||||
this.proxy = {
|
|
||||||
"enabled": true,
|
|
||||||
"protocol": "http",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 8080,
|
|
||||||
"credential": null
|
|
||||||
};
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "BURPSUITE":
|
case "BURPSUITE":
|
||||||
|
case "ZAP":
|
||||||
this.proxy = {
|
this.proxy = {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"protocol": "http",
|
"protocol": "http",
|
||||||
|
@ -793,8 +785,6 @@ var HTTPObject = function(engine) {
|
||||||
"port": 8080,
|
"port": 8080,
|
||||||
"credential": null
|
"credential": null
|
||||||
};
|
};
|
||||||
this.curlOptions.push("-k");
|
|
||||||
this.curlOptions.push("--ssl-no-revoke");
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -828,4 +818,4 @@ exports.get = function(url, data, headers) {
|
||||||
|
|
||||||
exports.VERSIONINFO = "HTTP Lib (http.js) version 0.7.2";
|
exports.VERSIONINFO = "HTTP Lib (http.js) version 0.7.2";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
exports.require = global.require;
|
exports.require = global.require;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user