commit 5bd9b58f0929ab2290618e871fca85cec46e3241
parent 24f802be7ea8c1f2eeeb8ab0d1f88f325265fb90
Author: default <nobody@localhost>
Date: Sat, 13 May 2023 09:17:35 +0200
Merge branch 'master' of grunfink-codeberg:grunfink/snac2
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/webfinger.c b/webfinger.c
@@ -43,7 +43,8 @@ int webfinger_request(const char *qs, char **actor, char **user)
if (host == NULL || resource == NULL)
return 400;
- headers = xs_dict_append(headers, "accept", "application/json");
+ headers = xs_dict_append(headers, "accept", "application/json");
+ headers = xs_dict_append(headers, "user-agent", USER_AGENT);
/* is it a query about one of us? */
if (strcmp(host, xs_dict_get(srv_config, "host")) == 0) {