Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
tongchengbin committed Jan 2, 2024
1 parent 805acbe commit 8a5db5c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/finger/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,6 @@ func Request(uri string, timeout time.Duration, proxyURL string, disableIcon boo
req.Header.Set("Accept", "*/*")
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.58")
resp, err := client.Do(req)
if err != nil && strings.Contains(err.Error(), "EOF") {
client.Transport.(*http.Transport).CloseIdleConnections()
client, _ = NewClient(proxyURL, timeout)
continue
}
if err != nil && err.Error() != http.ErrUseLastResponse.Error() {
return banners, err
}
Expand Down

0 comments on commit 8a5db5c

Please sign in to comment.