mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35: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
|
@ -67,6 +67,7 @@ int activitypub_request(snac *snac, char *url, d_char **data)
|
|||
|
||||
xs *hdrs = xs_dict_new();
|
||||
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