Skip to content

Commit 373cff9

Browse files
committed
increase fasthttp readbuffersize
1 parent 60519b0 commit 373cff9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pkg/utils.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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

4748
func PrintNewLine() {
@@ -55,19 +56,20 @@ func PrintLog(msg string) {
5556
}
5657

5758
func 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

0 commit comments

Comments
 (0)