Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
chore: Slim support default append all response
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Sep 28, 2018
1 parent 18fbaca commit 6ca6ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Slim/Cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Cors
*
* @var bool
*/
protected $append = false;
protected $append = true;

/**
* Create the Slim framework middleware instance.
Expand All @@ -32,7 +32,7 @@ class Cors
*
* @author Seven Du <shiweidu@outlook.com>
*/
public function __construct($payload = null, bool $append = false)
public function __construct($payload = null, bool $append = true)
{
$this->append = $append;
// Default CORS settings.
Expand Down

0 comments on commit 6ca6ba4

Please sign in to comment.