commit 8451d66
default
·
2023-03-02 14:34:04 +0000 UTC
parent 1ca94da
Log the user-agent when serving the actor.
1 files changed,
+3,
-1
+3,
-1
1@@ -1362,7 +1362,9 @@ int activitypub_get_handler(d_char *req, char *q_path,
2 msg = msg_actor(&snac);
3 *ctype = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"";
4
5- snac_debug(&snac, 0, xs_fmt("serving actor"));
6+ char *ua = xs_dict_get(req, "user-agent");
7+
8+ snac_debug(&snac, 0, xs_fmt("serving actor [%s]", ua ? ua : "No UA"));
9 }
10 else
11 if (strcmp(p_path, "outbox") == 0) {