Skip to content

Commit db8f92a

Browse files
committed
🚑 fixed http code bug
1 parent b03086a commit db8f92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Headers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static function get($params, bool $safeOutput = false)
7272
public static function set($key, string $value = "", $replace = true, int $httpCode = 200): void
7373
{
7474
if (!is_array($key)) {
75-
$code = ($httpCode || self::$httpCode);
75+
$code = $httpCode ?? self::$httpCode;
7676

7777
if (!$code) {
7878
header("$key: $value", $replace);

0 commit comments

Comments
 (0)