From 0c2832f95fbc75c713d50f11ed5e4738c90a4e73 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Mon, 12 Oct 2020 00:29:54 +0300 Subject: [PATCH] Fix Chrly's API response handling --- common/components/SkinsSystemApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/components/SkinsSystemApi.php b/common/components/SkinsSystemApi.php index e624109..9caa02a 100644 --- a/common/components/SkinsSystemApi.php +++ b/common/components/SkinsSystemApi.php @@ -22,7 +22,7 @@ class SkinsSystemApi { */ public function textures(string $username): ?array { $response = $this->getClient()->request('GET', $this->buildUrl('/textures/' . $username)); - if ($response->getStatusCode() !== 204) { + if ($response->getStatusCode() !== 200) { return null; }