改名
This commit is contained in:
@@ -25,6 +25,9 @@ class ResponseEmitter
|
|||||||
*/
|
*/
|
||||||
public function sender(\Swoole\Http\Response|\Swoole\Http2\Response $response, ResponseInterface $emitter)
|
public function sender(\Swoole\Http\Response|\Swoole\Http2\Response $response, ResponseInterface $emitter)
|
||||||
{
|
{
|
||||||
|
$response->header('Content-Type', $emitter->getResponseFormat());
|
||||||
|
$response->end('$content->getData()');
|
||||||
|
return;
|
||||||
$content = $emitter->configure($response)->getContent();
|
$content = $emitter->configure($response)->getContent();
|
||||||
if ($content instanceof FileFormatter) {
|
if ($content instanceof FileFormatter) {
|
||||||
$this->download($content->getData(), $response);
|
$this->download($content->getData(), $response);
|
||||||
|
|||||||
Reference in New Issue
Block a user