mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +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;
|
||||
|
||||
case "MITMPROXY":
|
||||
this.proxy = {
|
||||
"enabled": true,
|
||||
"protocol": "http",
|
||||
"host": "127.0.0.1",
|
||||
"port": 8080,
|
||||
"credential": null
|
||||
};
|
||||
break;
|
||||
|
||||
case "BURPSUITE":
|
||||
case "ZAP":
|
||||
this.proxy = {
|
||||
"enabled": true,
|
||||
"protocol": "http",
|
||||
|
@ -793,8 +785,6 @@ var HTTPObject = function(engine) {
|
|||
"port": 8080,
|
||||
"credential": null
|
||||
};
|
||||
this.curlOptions.push("-k");
|
||||
this.curlOptions.push("--ssl-no-revoke");
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -828,4 +818,4 @@ exports.get = function(url, data, headers) {
|
|||
|
||||
exports.VERSIONINFO = "HTTP Lib (http.js) version 0.7.2";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
exports.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user