Use code 204 instead of 404 to avoid browser treating it like an error

This commit is contained in:
nathan 2023-06-29 09:48:30 -06:00
parent 08445f2857
commit 649b0bfd59

View File

@ -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;
}
}