We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae260b1 commit c0a3996Copy full SHA for c0a3996
src/HttpsTrait.php
@@ -31,15 +31,12 @@ private function isSchemeHttps(string $uriScheme) : bool
31
private function isGoingToBeForcedToHttps($match = null) : bool
32
{
33
$is404 = $match === null || ($match instanceof RouteResult && $match->isFailure());
34
- if (isset($this->config['allow_404']) &&
35
- $this->config['allow_404'] === true &&
36
- $is404
37
- ) {
38
- return true;
39
- }
40
-
41
if ($is404) {
42
- return false;
+ if (! isset($this->config['allow_404'])) {
+ return false;
+ }
+
+ return $this->config['allow_404'];
43
}
44
45
Assert::notNull($match);
0 commit comments