snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 8451d66601f2cf46630d9258c572245818d9a055
parent 1ca94dab671f04f1a703508c6857bec2ccf08539
Author: default <nobody@localhost>
Date:   Thu,  2 Mar 2023 15:34:04 +0100

Log the user-agent when serving the actor.

Diffstat:
Mactivitypub.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/activitypub.c b/activitypub.c @@ -1362,7 +1362,9 @@ int activitypub_get_handler(d_char *req, char *q_path, msg = msg_actor(&snac); *ctype = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""; - snac_debug(&snac, 0, xs_fmt("serving actor")); + char *ua = xs_dict_get(req, "user-agent"); + + snac_debug(&snac, 0, xs_fmt("serving actor [%s]", ua ? ua : "No UA")); } else if (strcmp(p_path, "outbox") == 0) {