1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

Fix warning when cookie is null

This commit is contained in:
Steven Nguyen 2023-10-31 18:25:35 +00:00 committed by GitHub
parent fbb82ceb81
commit c4e22b1085
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,10 @@ class Request extends UtopiaRequest
{
$headers = $this->generateHeaders();
if (empty($this->swoole->cookie)) {
return $headers;
}
$cookieHeaders = [];
foreach ($this->swoole->cookie as $key => $value) {
$cookieHeaders[] = "{$key}={$value}";