Skip to content

Commit

Permalink
Prepare 3.2.1 release.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Apr 8, 2020
1 parent cda651f commit c5ba1e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG-3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This changelog references the relevant changes (bug and security fixes) done to `laravie/api`.

## 3.2.1

Released: 2020-04-08

### Fixes

* Fix `http` and `https` detection.

## 3.2.0

Released: 2020-01-24
Expand Down
7 changes: 4 additions & 3 deletions src/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ public function methods()
*/
public function httpOnly()
{
return in_array('https', $this->action, true)
|| (\array_key_exists('https', $this->action) && $this->action['https']);
return in_array('http', $this->action, true)
|| (\array_key_exists('http', $this->action) && $this->action['http']);
}

/**
Expand All @@ -534,7 +534,8 @@ public function httpsOnly()
*/
public function secure()
{
return \in_array('https', $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 c5ba1e0

Please sign in to comment.