Skip to content

Commit

Permalink
Update Response.php
Browse files Browse the repository at this point in the history
  • Loading branch information
riverside committed Sep 22, 2024
1 parent e21038c commit be43b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public function json($body, int $flags = 0): Response
{
$body = json_encode($body, $flags);

if (!$this->get("Content-Type")) {
if ($this->get("Content-Type") != "application/json") {
$this->type("json");
}

Expand Down

0 comments on commit be43b86

Please sign in to comment.