Skip to content

Commit

Permalink
feat: update framework
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed May 31, 2024
1 parent 9c572b1 commit 8f8bee4
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 50 deletions.
6 changes: 3 additions & 3 deletions app/Error/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
use App\Response\BadgeResponse;
use App\Services\BadgeService;
use Core\Support\Error as BaseError;
use Throwable;

class Error extends BaseError
{
/**
* Tampilkan errornya.
*
* @param Throwable $th
* @return mixed
*/
public function render(Throwable $th): mixed
public function render(): mixed
{
$th = $this->getThrowable();

return new BadgeResponse((new BadgeService)->renderBadgeWithError(
$th::class,
$th->getMessage()
Expand Down
3 changes: 1 addition & 2 deletions app/Middleware/GzipMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public function handle(Request $request, Closure $next): Stream|Respond

$response->headers
->set('Vary', join(', ', $vary))
->set('Content-Encoding', 'gzip')
->set('Content-Length', strlen($compressed));
->set('Content-Encoding', 'gzip');

return $response;
}
Expand Down
91 changes: 46 additions & 45 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8f8bee4

Please sign in to comment.