diff options
| author | 2022-09-22 11:50:53 +0200 | |
|---|---|---|
| committer | 2022-09-22 11:50:53 +0200 | |
| commit | 28c7961e67e67293c3cdc443e757693e1335d1ec (patch) | |
| tree | d1d2538dce405ae8e0e8e4fac48b41bd2be8a977 /webfinger.c | |
| parent | Deleted left debug information. (diff) | |
| download | penes-snac2-28c7961e67e67293c3cdc443e757693e1335d1ec.tar.gz penes-snac2-28c7961e67e67293c3cdc443e757693e1335d1ec.tar.xz penes-snac2-28c7961e67e67293c3cdc443e757693e1335d1ec.zip | |
New macro valid_status().
Diffstat (limited to 'webfinger.c')
| -rw-r--r-- | webfinger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webfinger.c b/webfinger.c index 2364b70..519fb67 100644 --- a/webfinger.c +++ b/webfinger.c | |||
| @@ -68,7 +68,7 @@ void webfinger_request(char *qs, int *status, char **actor, char **user) | |||
| 68 | xs_http_request("GET", url, headers, NULL, 0, status, &payload, &p_size); | 68 | xs_http_request("GET", url, headers, NULL, 0, status, &payload, &p_size); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | if (*status >= 200 && *status <= 299) { | 71 | if (valid_status(*status)) { |
| 72 | xs *obj = xs_json_loads(payload); | 72 | xs *obj = xs_json_loads(payload); |
| 73 | 73 | ||
| 74 | if (user != NULL) { | 74 | if (user != NULL) { |