From 3d09bfe0942820bb4310d21a68529bf59a9571a8 Mon Sep 17 00:00:00 2001 From: Kresna Satya Date: Fri, 15 Mar 2024 12:45:53 +0800 Subject: [PATCH] set empty response when return http response 204 --- stubs/ci3/controllers/Webauth.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stubs/ci3/controllers/Webauth.php b/stubs/ci3/controllers/Webauth.php index d39812f..dbee961 100644 --- a/stubs/ci3/controllers/Webauth.php +++ b/stubs/ci3/controllers/Webauth.php @@ -146,9 +146,6 @@ public function changeRole() http_response_code(204); header('Content-Type: application/json'); - echo json_encode([ - 'link' => base_url('home') - ]); } /** @@ -168,8 +165,5 @@ public function changeKeyValue() http_response_code(204); header('Content-Type: application/json'); - echo json_encode([ - 'link' => '' - ]); } }