/** * {@inheritdoc} */ public function send(Request $request, Response $response) { $this->isCGI = $request->isCGI(); if (!$this->isCGI) { $response->header('content-encoding', 'chunked'); $response->header('transfer-encoding', 'chunked'); } $response->sendHeaders(); $this->flow(); }