summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/signatures.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/signatures.py b/core/signatures.py
index d0443c3..45e6ff4 100644
--- a/core/signatures.py
+++ b/core/signatures.py
@@ -220,6 +220,10 @@ class HttpSignature:
"algorithm": "rsa-sha256",
}
)
+
+ # Announce ourselves with an agent similar to Mastodon
+ headers["User-Agent"] = settings.TAKAHE_USER_AGENT
+
# Send the request with all those headers except the pseudo one
del headers["(request-target)"]
async with httpx.AsyncClient(timeout=timeout) as client: