summaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
Diffstat (limited to 'webfinger.c')
-rw-r--r--webfinger.c2
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)
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) {