Skip to content

Commit d299f74

Browse files
committed
fixup! Allow to specify the cookie type for appframework responses
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent 88f57c8 commit d299f74

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/private/AppFramework/App.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,7 @@ public static function main(string $controllerName, string $methodName, DIContai
151151
if ($value['expireDate'] instanceof \DateTime) {
152152
$expireDate = $value['expireDate']->getTimestamp();
153153
}
154-
$sameSite = 'Lax';
155-
if (isset($value['sameSite'])) {
156-
$sameSite = $value['sameSite'];
157-
}
154+
$sameSite = $value['sameSite'] ?? 'Lax';
158155

159156
$io->setCookie(
160157
$name,

0 commit comments

Comments
 (0)