mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-10 17:29:31 +00:00
Merge pull request #3239 from Minnozz/user-agent
Replace python-requests with BookWyrm in user agent
This commit is contained in:
commit
103da863c4
|
@ -350,8 +350,7 @@ USE_L10N = True
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
||||||
|
|
||||||
agent = requests.utils.default_user_agent()
|
USER_AGENT = f"BookWyrm (BookWyrm/{VERSION}; +https://{DOMAIN}/)"
|
||||||
USER_AGENT = f"{agent} (BookWyrm/{VERSION}; +https://{DOMAIN}/)"
|
|
||||||
|
|
||||||
# Imagekit generated thumbnails
|
# Imagekit generated thumbnails
|
||||||
ENABLE_THUMBNAIL_GENERATION = env.bool("ENABLE_THUMBNAIL_GENERATION", False)
|
ENABLE_THUMBNAIL_GENERATION = env.bool("ENABLE_THUMBNAIL_GENERATION", False)
|
||||||
|
|
Loading…
Reference in a new issue