mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-09-19 18:00:23 +03:00
Added user-agent in non-signed http connections.
This commit is contained in:
parent
5036cb5e11
commit
1ca94dab67
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user