mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
response changes
This commit is contained in:
@@ -457,10 +457,9 @@ class Response extends SwooleResponse
|
||||
public function file(string $data, string $contentType): void
|
||||
{
|
||||
$this->payload = [
|
||||
'content-type' => $contentType,
|
||||
'payload' => $data
|
||||
];
|
||||
|
||||
'content-type' => $contentType,
|
||||
'payload' => $data
|
||||
];
|
||||
$this->send($data);
|
||||
}
|
||||
|
||||
@@ -491,7 +490,7 @@ class Response extends SwooleResponse
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getPayload(): string | array
|
||||
public function getPayload(): array
|
||||
{
|
||||
return $this->payload;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user