summaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
authorGravatar default2023-05-13 09:17:35 +0200
committerGravatar default2023-05-13 09:17:35 +0200
commit5bd9b58f0929ab2290618e871fca85cec46e3241 (patch)
treec9a68dc1c56f2218ffd0587c5a21d7f10b8aa887 /webfinger.c
parentUse a different approach towards incomplete mentions. (diff)
parentMerge pull request 'Added user-agent to webfinger query' (#34) from poesty/sn... (diff)
downloadsnac2-5bd9b58f0929ab2290618e871fca85cec46e3241.tar.gz
snac2-5bd9b58f0929ab2290618e871fca85cec46e3241.tar.xz
snac2-5bd9b58f0929ab2290618e871fca85cec46e3241.zip
Merge branch 'master' of grunfink-codeberg:grunfink/snac2
Diffstat (limited to 'webfinger.c')
-rw-r--r--webfinger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/webfinger.c b/webfinger.c
index c743455..3471b49 100644
--- a/webfinger.c
+++ b/webfinger.c
@@ -43,7 +43,8 @@ int webfinger_request(const char *qs, char **actor, char **user)
43 if (host == NULL || resource == NULL) 43 if (host == NULL || resource == NULL)
44 return 400; 44 return 400;
45 45
46 headers = xs_dict_append(headers, "accept", "application/json"); 46 headers = xs_dict_append(headers, "accept", "application/json");
47 headers = xs_dict_append(headers, "user-agent", USER_AGENT);
47 48
48 /* is it a query about one of us? */ 49 /* is it a query about one of us? */
49 if (strcmp(host, xs_dict_get(srv_config, "host")) == 0) { 50 if (strcmp(host, xs_dict_get(srv_config, "host")) == 0) {