diff options
author | default <nobody@localhost> | 2023-05-13 09:17:35 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-13 09:17:35 +0200 |
commit | 5bd9b58f0929ab2290618e871fca85cec46e3241 (patch) | |
tree | c9a68dc1c56f2218ffd0587c5a21d7f10b8aa887 | |
parent | 24f802be7ea8c1f2eeeb8ab0d1f88f325265fb90 (diff) | |
parent | f66080f67ca2bcc0dce040fdffc6718f1b1d4bf3 (diff) |
Merge branch 'master' of grunfink-codeberg:grunfink/snac2
-rw-r--r-- | webfinger.c | 3 |
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) 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) { |