Skip to content

Commit

Permalink
Merge pull request #70 from Codeception/dont-set-empty-headers
Browse files Browse the repository at this point in the history
Don't set empty headers, because null values can cause issues
  • Loading branch information
Naktibalda committed May 18, 2021
2 parents 2db5a07 + 798839a commit 6253181
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion c3.php
Expand Up @@ -24,7 +24,9 @@

if ($cookie) {
foreach ($cookie as $key => $value) {
$_SERVER["HTTP_X_CODECEPTION_" . strtoupper($key)] = $value;
if (!empty($value)) {
$_SERVER["HTTP_X_CODECEPTION_" . strtoupper($key)] = $value;
}
}
}
}
Expand Down

0 comments on commit 6253181

Please sign in to comment.