Skip to content

Commit

Permalink
fix response block
Browse files Browse the repository at this point in the history
  • Loading branch information
oxycoder committed Jun 18, 2018
1 parent 00cbf13 commit eb197c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Oxycoder/ApiDoc/Generators/AbstractGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ protected function getDocblockResponse($tags)
}
$responseTag = \array_first($responseTags);

return \response(\json_encode($responseTag->getContent()));
return \response(\json_encode($responseTag->getContent()), 200, [
'Content-Type' => 'application/json'
]);
}

/**
Expand Down

0 comments on commit eb197c1

Please sign in to comment.