Skip to content

Commit

Permalink
Merge pull request #17 from projectdiscovery/bugfix-redirect
Browse files Browse the repository at this point in the history
fixed redirect bug
  • Loading branch information
Mzack9999 authored Oct 16, 2020
2 parents 812be7a + 01e6b53 commit fc3933a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (c *Client) DoRaw(method, url, uripath string, headers map[string][]string,
// DoRawWithOptions performs a raw request with additional options
func (c *Client) DoRawWithOptions(method, url, uripath string, headers map[string][]string, body io.Reader, options Options) (*http.Response, error) {
redirectstatus := &RedirectStatus{
FollowRedirects: true,
FollowRedirects: options.FollowRedirects,
MaxRedirects: c.Options.MaxRedirects,
}
return c.do(method, url, uripath, headers, body, redirectstatus, options)
Expand Down

0 comments on commit fc3933a

Please sign in to comment.