summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-03-02 15:34:04 +0100
committerGravatar default2023-03-02 15:34:04 +0100
commit8451d66601f2cf46630d9258c572245818d9a055 (patch)
treee2fbfd4733a8a6ed039a52b7fbba2e3e6d4b8c0e
parentAdded user-agent in non-signed http connections. (diff)
downloadsnac2-8451d66601f2cf46630d9258c572245818d9a055.tar.gz
snac2-8451d66601f2cf46630d9258c572245818d9a055.tar.xz
snac2-8451d66601f2cf46630d9258c572245818d9a055.zip
Log the user-agent when serving the actor.
-rw-r--r--activitypub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index a4969c1..11fddf4 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1362,7 +1362,9 @@ int activitypub_get_handler(d_char *req, char *q_path,
1362 msg = msg_actor(&snac); 1362 msg = msg_actor(&snac);
1363 *ctype = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""; 1363 *ctype = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"";
1364 1364
1365 snac_debug(&snac, 0, xs_fmt("serving actor")); 1365 char *ua = xs_dict_get(req, "user-agent");
1366
1367 snac_debug(&snac, 0, xs_fmt("serving actor [%s]", ua ? ua : "No UA"));
1366 } 1368 }
1367 else 1369 else
1368 if (strcmp(p_path, "outbox") == 0) { 1370 if (strcmp(p_path, "outbox") == 0) {