Skip to content

Commit

Permalink
$response->send(); does not kill the process consistently in differen…
Browse files Browse the repository at this point in the history
…t environments.
  • Loading branch information
incraigulous committed Apr 8, 2024
1 parent b18d2b9 commit a12e97e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Middleware/Render.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function renderJson(Response $response): void
return;
}
$response->send();
die;
}

/**
Expand All @@ -69,6 +70,7 @@ protected function render(Response $response): void
}
if ($response->getStatusCode() === 200) {
$response->send();
die;
}
}
}

0 comments on commit a12e97e

Please sign in to comment.