Skip to content

Commit be43b86

Browse files
committed
Update Response.php
1 parent e21038c commit be43b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Response.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public function json($body, int $flags = 0): Response
336336
{
337337
$body = json_encode($body, $flags);
338338

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

0 commit comments

Comments
 (0)