File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ func InitClient() {
4141 DisableHeaderNamesNormalizing : true , // needed for request smuggling and other techniques using non-normalized headers
4242 ReadTimeout : time .Duration (Config .TimeOut ) * time .Second ,
4343 WriteTimeout : time .Duration (Config .TimeOut ) * time .Second ,
44- TLSConfig : & tls.Config {InsecureSkipVerify : true }}
44+ TLSConfig : & tls.Config {InsecureSkipVerify : true },
45+ ReadBufferSize : 8 * 1024 }
4546}
4647
4748func PrintNewLine () {
@@ -55,19 +56,20 @@ func PrintLog(msg string) {
5556}
5657
5758func PrintVerbose (msg string , c int , threshold int ) {
58- if c == Red {
59+ switch c {
60+ case Red :
5961 PrintLog ("[ERR] " + msg )
6062 msg = color .RedString ("[ERR] " ) + msg
61- } else if c == Yellow {
63+ case Yellow :
6264 PrintLog ("[!] " + msg )
6365 msg = color .YellowString ("[!] " ) + msg
64- } else if c == Green {
66+ case Green :
6567 PrintLog ("[+] " + msg )
6668 msg = color .GreenString ("[+] " ) + msg
67- } else if c == Cyan {
69+ case Cyan :
6870 PrintLog ("[*] " + msg )
6971 msg = color .CyanString ("[*] " ) + msg
70- } else {
72+ default :
7173 PrintLog (msg )
7274 }
7375
You can’t perform that action at this time.
0 commit comments