updated scanning useragent
This commit is contained in:
parent
77f69abf63
commit
4963866427
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ func downloadIcon(url string, timeout time.Duration, maxSize int64) ([]byte, str
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, "", fmt.Errorf("bad url: %w", err)
|
return nil, "", fmt.Errorf("bad url: %w", err)
|
||||||
}
|
}
|
||||||
req.Header.Set("User-Agent", "Mozilla/5.0 (compatible; EveryTabBot/1.0; +https://everytab.site/bot)")
|
req.Header.Set("User-Agent", "Mozilla/5.0 (compatible; EveryTabBot/1.0; +https://everytab.site/bot.html)")
|
||||||
|
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue