Skip to content

Commit

Permalink
#130. Fix Content-Type headers
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Jan 26, 2019
1 parent c74ef7d commit 33b39b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public function options()
{
// this seems like needless params passed by default, but they needed for backward compatibility in Laravel prev versions
return response('', 200)->withHeaders([
'Allow' => HTTPMethodsInterface::HTTP_METHODS_AVAILABLE,
JSONApiInterface::HEADER_CONTENT_TYPE => JSONApiInterface::HEADER_CONTENT_TYPE_VALUE,
'Allow' => HTTPMethodsInterface::HTTP_METHODS_AVAILABLE,
JSONApiInterface::CONTENT_TYPE_KEY => JSONApiInterface::HEADER_CONTENT_TYPE_VALUE,
]);
}

Expand Down

0 comments on commit 33b39b1

Please sign in to comment.