Skip to content

Commit

Permalink
SERVER_PORT force int
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Jun 5, 2024
1 parent 1a00015 commit 050881a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public static function decode(string $recv_buffer, TcpConnection $connection): v
case 'HOST':
$tmp = \explode(':', $value);
$_SERVER['SERVER_NAME'] = $tmp[0];
$_SERVER['SERVER_PORT'] = $tmp[1] ?? 80;
$_SERVER['SERVER_PORT'] = (int) ($tmp[1] ?? 80);
break;
// cookie
case 'COOKIE':
Expand Down

0 comments on commit 050881a

Please sign in to comment.