Skip to content

Commit 798839a

Browse files
authored
Don't set empty headers, because null values can cause issues
1 parent 2db5a07 commit 798839a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

c3.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
if ($cookie) {
2626
foreach ($cookie as $key => $value) {
27-
$_SERVER["HTTP_X_CODECEPTION_" . strtoupper($key)] = $value;
27+
if (!empty($value)) {
28+
$_SERVER["HTTP_X_CODECEPTION_" . strtoupper($key)] = $value;
29+
}
2830
}
2931
}
3032
}

0 commit comments

Comments
 (0)