mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Added user-agent in non-signed http connections.
This commit is contained in:
parent
5036cb5e11
commit
1ca94dab67
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue