diff --git a/src/Bridge/Symfony/HttpFoundation/ResponseProcessor.php b/src/Bridge/Symfony/HttpFoundation/ResponseProcessor.php index d0993ded..6f1f8284 100644 --- a/src/Bridge/Symfony/HttpFoundation/ResponseProcessor.php +++ b/src/Bridge/Symfony/HttpFoundation/ResponseProcessor.php @@ -44,7 +44,7 @@ public function process(HttpFoundationResponse $httpFoundationResponse, SwooleRe $swooleResponse->status($httpFoundationResponse->getStatusCode()); if ($httpFoundationResponse instanceof BinaryFileResponse) { - $swooleResponse->sendfile($httpFoundationResponse->getFile()->getFilename()); + $swooleResponse->sendfile($httpFoundationResponse->getFile()->getRealPath()); } else { $swooleResponse->end($httpFoundationResponse->getContent()); }