We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e3c97d commit 7a528afCopy full SHA for 7a528af
anymail/backends/base_requests.py
@@ -35,8 +35,9 @@ def open(self):
35
if not self.fail_silently:
36
raise
37
else:
38
- self.session.headers["User-Agent"] = "Anymail/%s %s" % (
39
- __version__, self.session.headers.get("User-Agent", ""))
+ self.session.headers["User-Agent"] = "django-anymail/{version}-{esp} {orig}".format(
+ esp=self.esp_name.lower(), version=__version__,
40
+ orig=self.session.headers.get("User-Agent", ""))
41
return True
42
43
def close(self):
0 commit comments