Added user-agent in non-signed http connections.

This commit is contained in:
default 2023-03-02 13:30:29 +01:00
parent 5036cb5e11
commit 1ca94dab67

View File

@ -66,7 +66,8 @@ int activitypub_request(snac *snac, char *url, d_char **data)
xs_free(response);
xs *hdrs = xs_dict_new();
hdrs = xs_dict_append(hdrs, "accept", "application/activity+json");
hdrs = xs_dict_append(hdrs, "accept", "application/activity+json");
hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT);
response = xs_http_request("GET", url, hdrs,
NULL, 0, &status, &payload, &p_size, 0);