Skip to content

Commit

Permalink
🚨 LGTM alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Oct 5, 2020
1 parent 996d71f commit d3faa1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/crlfuzz/crlfuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import (
func Scan(url string, method string, data string, headers []string, proxy string) (bool, error) {
client := request.Client(proxy)
req, e := http.NewRequest(method, url, strings.NewReader(data))
if e != nil {
return false, errors.New(e.Error())
}
for _, header := range headers {
parts := strings.SplitN(header, ":", 2)

Expand All @@ -21,9 +24,6 @@ func Scan(url string, method string, data string, headers []string, proxy string

req.Header.Set(parts[0], parts[1])
}
if e != nil {
return false, errors.New(e.Error())
}

res, e := client.Do(req)
if e != nil {
Expand Down

0 comments on commit d3faa1f

Please sign in to comment.