Support bypassing Host check

An empty $httpHost can be passed to circumvent checking Host header.
This commit is contained in:
Christian Lück 2014-05-19 15:15:09 +02:00
parent 02a63c180d
commit dc9945f2a3

View File

@ -107,7 +107,9 @@ class App {
$decorated = $controller;
}
$httpHost = $httpHost ?: $this->httpHost;
if ($httpHost === null) {
$httpHost = $this->httpHost;
}
$allowedOrigins = array_values($allowedOrigins);
if (0 === count($allowedOrigins)) {