Added user-agent to webfinger query

This commit is contained in:
poesty 2023-05-13 02:33:29 +08:00
parent cada652f3f
commit 962a45ccd1

View file

@ -47,6 +47,7 @@ int webfinger_request(const char *qs, char **actor, char **user)
return 400;
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) {