We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e3c8b31 + 6227941 commit 1ff4d3aCopy full SHA for 1ff4d3a
src/Routing/Route.php
@@ -511,8 +511,8 @@ public function methods()
511
*/
512
public function httpOnly()
513
{
514
- return in_array('https', $this->action, true)
515
- || (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']);
516
}
517
518
/**
@@ -532,7 +532,8 @@ public function httpsOnly()
532
533
public function secure()
534
535
- return in_array('https', $this->action, true);
+ return in_array('https', $this->action, true)
536
+ || (array_key_exists('https', $this->action) && $this->action['https']);
537
538
539
0 commit comments