Skip to content

Commit

Permalink
Allow https route declaration with 'https' array key and value
Browse files Browse the repository at this point in the history
Allow https route declaration with 'https' array key and value.
```
$router->group(['https' => true], function (Router $router) {
});
```
  • Loading branch information
gazben authored May 7, 2019
1 parent 8f97fad commit 3b179df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ public function methods()
*/
public function httpOnly()
{
return in_array('http', $this->action, true);
return in_array('https', $this->action, true)
|| (array_key_exists('https', $this->action) && $this->action['https']);
}

/**
Expand Down

0 comments on commit 3b179df

Please sign in to comment.