Merge pull request #3239 from Minnozz/user-agent

Replace python-requests with BookWyrm in user agent
This commit is contained in:
Mouse Reeve 2024-02-03 07:27:58 -08:00 committed by GitHub
commit 103da863c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -350,8 +350,7 @@ USE_L10N = True
USE_TZ = True
agent = requests.utils.default_user_agent()
USER_AGENT = f"{agent} (BookWyrm/{VERSION}; +https://{DOMAIN}/)"
USER_AGENT = f"BookWyrm (BookWyrm/{VERSION}; +https://{DOMAIN}/)"
# Imagekit generated thumbnails
ENABLE_THUMBNAIL_GENERATION = env.bool("ENABLE_THUMBNAIL_GENERATION", False)