Skip to content

Commit

Permalink
✅ fix: correct status code retrieval in getHttpStatus method
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezajavadigit committed Nov 7, 2024
1 parent 7f41866 commit 9624758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System/Traits/HasStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ trait HasStatus
private function getHttpStatus($status)
{
// Informational responses (100–199)
switch ($status) {
switch ($status[0]) {
case 100:
return [100, "Continue"];
case 101:
Expand Down

0 comments on commit 9624758

Please sign in to comment.