Skip to content

Commit dca62fe

Browse files
committed
Revert "Http\Response: duplicate cookies are removed automatically in PHP >= 5.4"
Only one handler can be set via header_register_callback() and Response should not overwrite the previous. This reverts commit 87796c0.
1 parent 00f1a50 commit dca62fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct()
4343
if (is_int($code = http_response_code())) {
4444
$this->code = $code;
4545
}
46-
header_register_callback((new \ReflectionMethod('Nette\Http\Helpers::removeDuplicateCookies'))->getClosure()); // requires closure due PHP bug #66375
46+
4747
}
4848

4949

0 commit comments

Comments
 (0)