From 649b0bfd59df3d034352075e20cf0727c5b1ab0b Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 29 Jun 2023 09:48:30 -0600 Subject: [PATCH] Use code 204 instead of 404 to avoid browser treating it like an error --- api/src/Contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Contacts.php b/api/src/Contacts.php index 4e10ff0630..8d61b8da6e 100755 --- a/api/src/Contacts.php +++ b/api/src/Contacts.php @@ -2764,7 +2764,7 @@ class Contacts extends Contacts\Storage { Session::cache_control(86400); // cache for 1 day header('Content-type: image/jpeg'); - http_response_code(404); + http_response_code(204); exit; } }