commit 1ca94da

default  ·  2023-03-02 12:30:29 +0000 UTC
parent 5036cb5
Added user-agent in non-signed http connections.
1 files changed,  +2, -1
+2, -1
 1@@ -66,7 +66,8 @@ int activitypub_request(snac *snac, char *url, d_char **data)
 2         xs_free(response);
 3 
 4         xs *hdrs = xs_dict_new();
 5-        hdrs = xs_dict_append(hdrs, "accept", "application/activity+json");
 6+        hdrs = xs_dict_append(hdrs, "accept",     "application/activity+json");
 7+        hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT);
 8 
 9         response = xs_http_request("GET", url, hdrs,
10             NULL, 0, &status, &payload, &p_size, 0);