From 6754f480355221ecedc174040f47369ce7facaa8 Mon Sep 17 00:00:00 2001 From: Akanksha Singh Date: Thu, 8 Sep 2022 15:45:17 +0530 Subject: [PATCH] Allow homarus to use faststart for video conversion --- Homarus/src/Controller/HomarusController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Homarus/src/Controller/HomarusController.php b/Homarus/src/Controller/HomarusController.php index 0777098a..5933446a 100644 --- a/Homarus/src/Controller/HomarusController.php +++ b/Homarus/src/Controller/HomarusController.php @@ -146,11 +146,10 @@ public function convert(Request $request) try { $this->cmd->execute($cmd_string, $source); return (new BinaryFileResponse( - $temp_file_path, - 200, - ['Content-Type' => $content_type] + $temp_file_path, + 200, + ['Content-Type' => $content_type] ))->deleteFileAfterSend(true); - } catch (\RuntimeException $e) { $this->log->error("RuntimeException:", ['exception' => $e]); return new Response($e->getMessage(), 500);