Skip to content

Commit

Permalink
set empty response when return http response 204
Browse files Browse the repository at this point in the history
  • Loading branch information
kresnasatya authored Mar 15, 2024
1 parent a272118 commit 3d09bfe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions stubs/ci3/controllers/Webauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ public function changeRole()

http_response_code(204);
header('Content-Type: application/json');
echo json_encode([
'link' => base_url('home')
]);
}

/**
Expand All @@ -168,8 +165,5 @@ public function changeKeyValue()

http_response_code(204);
header('Content-Type: application/json');
echo json_encode([
'link' => ''
]);
}
}

0 comments on commit 3d09bfe

Please sign in to comment.