We now use a proper user agent including instance version and url during outgoing requests

This commit is contained in:
Eliot Berriot 2018-04-07 16:20:34 +02:00
commit b5ff339efa
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
10 changed files with 47 additions and 19 deletions

View file

@ -5,7 +5,7 @@ from django.conf import settings
from funkwhale_api import __version__
_api = musicbrainzngs
_api.set_useragent('funkwhale', str(__version__), 'contact@eliotberriot.com')
_api.set_useragent('funkwhale', str(__version__), settings.FUNKWHALE_URL)
store = memoize.djangocache.Cache('default')