We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25ede1e commit 0fd2898Copy full SHA for 0fd2898
1 file changed
internal/geizhals/download.go
@@ -65,7 +65,7 @@ func downloadEntity(url EntityURL) (Entity, error) {
65
// downloadHTML downloads the HTML content of the given URL and returns the document and the HTTP status code.
66
func downloadHTML(entityURL string) (*goquery.Document, int, error) {
67
proxyURL := proxy.GetNextProxy()
68
- httpClient := &http.Client{}
+ httpClient := &http.Client{Timeout: time.Second * 10}
69
70
if proxyURL != nil {
71
log.Println("Using proxy: ", proxyURL)
0 commit comments