Fix warning when cookie is null
This commit is contained in:
parent
fbb82ceb81
commit
c4e22b1085
1 changed files with 4 additions and 0 deletions
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue