Skip to content

Commit

Permalink
(Fixed #125) Changed --follow-redirects coe
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Oct 4, 2020
1 parent 1246ace commit 7ce564a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/scanning/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ func Scan(target string, options model.Options, sid string) {

if !options.FollowRedirect {
client.CheckRedirect = func(req *http.Request, via []*http.Request) error {
//return errors.New("Follow redirect") // or maybe the error from the request
return nil
return http.ErrUseLastResponse
}
}

Expand Down

0 comments on commit 7ce564a

Please sign in to comment.