readall is mandatory not to leak
This commit is contained in:
3
boom.go
3
boom.go
@@ -39,7 +39,6 @@ var (
|
||||
accept = flag.String("A", "", "")
|
||||
contentType = flag.String("T", "text/html", "")
|
||||
authHeader = flag.String("a", "", "")
|
||||
readAll = flag.Bool("readall", false, "")
|
||||
|
||||
output = flag.String("o", "", "")
|
||||
|
||||
@@ -75,7 +74,6 @@ Options:
|
||||
-a Basic authentication, username:password.
|
||||
-x HTTP Proxy address as host:port.
|
||||
|
||||
-readall Consumes the entire request body.
|
||||
-allow-insecure Allow bad/expired TLS/SSL certificates.
|
||||
-disable-compression Disable compression.
|
||||
-disable-keepalive Disable keep-alive, prevents re-use of TCP
|
||||
@@ -175,7 +173,6 @@ func main() {
|
||||
DisableKeepAlives: *disableKeepAlives,
|
||||
ProxyAddr: proxyURL,
|
||||
Output: *output,
|
||||
ReadAll: *readAll,
|
||||
}).Run()
|
||||
}
|
||||
|
||||
|
||||
@@ -70,10 +70,6 @@ type Boomer struct {
|
||||
// Optional.
|
||||
ProxyAddr *url.URL
|
||||
|
||||
// ReadAll determines whether the body of the response needs
|
||||
// to be fully consumed.
|
||||
ReadAll bool
|
||||
|
||||
results chan *result
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user