From 28c7961e67e67293c3cdc443e757693e1335d1ec Mon Sep 17 00:00:00 2001 From: default Date: Thu, 22 Sep 2022 11:50:53 +0200 Subject: New macro valid_status(). --- webfinger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webfinger.c') 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) xs_http_request("GET", url, headers, NULL, 0, status, &payload, &p_size); } - if (*status >= 200 && *status <= 299) { + if (valid_status(*status)) { xs *obj = xs_json_loads(payload); if (user != NULL) { -- cgit v1.2.3