diff options
| author | 2022-09-27 18:01:51 +0200 | |
|---|---|---|
| committer | 2022-09-27 18:01:51 +0200 | |
| commit | f1dbd8e70092fac0b202a98a10a832851cdd7f14 (patch) | |
| tree | 2cf8137bc291b81e3d5771ad953abde1da38b463 /http.c | |
| parent | Rewrite not_really_markdown() with xs_regex_split(). (diff) | |
| download | snac2-f1dbd8e70092fac0b202a98a10a832851cdd7f14.tar.gz snac2-f1dbd8e70092fac0b202a98a10a832851cdd7f14.tar.xz snac2-f1dbd8e70092fac0b202a98a10a832851cdd7f14.zip | |
New variable USER_AGENT.
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -90,7 +90,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url, | |||
| 90 | hdrs = xs_dict_append(hdrs, "signature", signature); | 90 | hdrs = xs_dict_append(hdrs, "signature", signature); |
| 91 | hdrs = xs_dict_append(hdrs, "digest", digest); | 91 | hdrs = xs_dict_append(hdrs, "digest", digest); |
| 92 | hdrs = xs_dict_append(hdrs, "host", host); | 92 | hdrs = xs_dict_append(hdrs, "host", host); |
| 93 | hdrs = xs_dict_append(hdrs, "user-agent", "snac/2.x"); | 93 | hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT); |
| 94 | 94 | ||
| 95 | response = xs_http_request(method, url, hdrs, | 95 | response = xs_http_request(method, url, hdrs, |
| 96 | body, b_size, status, payload, p_size); | 96 | body, b_size, status, payload, p_size); |