Skip to content

Commit 534ce81

Browse files
authored
Fixed bug that the response plus proxy cannot support another responses without getCookies. (#7188)
1 parent 53a7caa commit 534ce81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Server/ResponsePlusProxy.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ public function __call(string $name, array $arguments)
4949

5050
public function getCookies()
5151
{
52-
return $this->__call('getCookies', []);
52+
if (method_exists($this->response, 'getCookies')) {
53+
return $this->response->getCookies();
54+
}
55+
56+
return [];
5357
}
5458

5559
public function getProtocolVersion(): string

0 commit comments

Comments
 (0)