Skip to content

Commit

Permalink
fix hasChain with 1 status code not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 committed Jun 24, 2024
1 parent bbf3fa6 commit fabadcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/httpx/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (r *Response) GetChainAsSlice() (chain []ChainItem) {

// HasChain redirects
func (r *Response) HasChain() bool {
return len(r.Chain) > 1
return len(r.Chain) >= 1
}

// GetChainLastURL returns the final URL
Expand Down

0 comments on commit fabadcd

Please sign in to comment.