Skip to content

Commit

Permalink
Passthrough the configured MIME. (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandukart authored Jul 19, 2023
1 parent c2c44b9 commit fd2b04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hypercube/src/Controller/HypercubeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function ocr(Request $request): Response
return new StreamedResponse(
$this->cmd->execute($cmd_string, $body),
200,
['Content-Type' => 'text/plain']
['Content-Type' => $request->headers->get('Accept') ?? 'text/plain']
);
} catch (\RuntimeException $e) {
return new Response($e->getMessage(), 500);
Expand Down

0 comments on commit fd2b04c

Please sign in to comment.