commit 5bd9b58

default  ·  2023-05-13 07:17:35 +0000 UTC
parents 24f802b, f66080f
Merge branch 'master' of grunfink-codeberg:grunfink/snac2
1 files changed,  +2, -1
+2, -1
 1@@ -43,7 +43,8 @@ int webfinger_request(const char *qs, char **actor, char **user)
 2     if (host == NULL || resource == NULL)
 3         return 400;
 4 
 5-    headers = xs_dict_append(headers, "accept", "application/json");
 6+    headers = xs_dict_append(headers, "accept",     "application/json");
 7+    headers = xs_dict_append(headers, "user-agent", USER_AGENT);
 8 
 9     /* is it a query about one of us? */
10     if (strcmp(host, xs_dict_get(srv_config, "host")) == 0) {