diff options
author | poesty <poesty7450@gmail.com> | 2023-05-13 02:33:29 +0800 |
---|---|---|
committer | poesty <poesty7450@gmail.com> | 2023-05-13 02:33:29 +0800 |
commit | 962a45ccd1332ac7793a5df8724a3b963b560cee (patch) | |
tree | d07fc22d0546af0a16ec94b9b66abc491e10b749 /webfinger.c | |
parent | cada652f3ff1f8c3fa114e4af3c3de99114ccbbf (diff) |
Added user-agent to webfinger query
Diffstat (limited to 'webfinger.c')
-rw-r--r-- | webfinger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webfinger.c b/webfinger.c index c7b73f7..19036fb 100644 --- a/webfinger.c +++ b/webfinger.c @@ -46,7 +46,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) { |