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);