Skip to content

Commit 4eddd1f

Browse files
committed
Update fallback user agent
1 parent bae5ac0 commit 4eddd1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

linkcheck/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def html_decode(s):
5959

6060
STATUS_CODE_CHOICES = [(s.value, f'{s.value} {s.phrase}') for s in HTTPStatus]
6161
DEFAULT_USER_AGENT = f'{settings.SITE_DOMAIN} Linkchecker'
62-
FALLBACK_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0'
62+
FALLBACK_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36'
63+
6364

6465

6566
class Url(models.Model):

0 commit comments

Comments
 (0)