function Request::isIisRewrite
Is this IIS with UrlRewriteModule?
This method consumes, caches and removed the IIS_WasUrlRewritten env var, so we don't inherit it to sub-requests.
2 calls to Request::isIisRewrite()
- Request::getUrlencodedPrefix in vendor/
symfony/ http-foundation/ Request.php - Returns the prefix as encoded in the string when the string starts with the given prefix, null otherwise.
- Request::prepareRequestUri in vendor/
symfony/ http-foundation/ Request.php
File
-
vendor/
symfony/ http-foundation/ Request.php, line 2099
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
private function isIisRewrite() : bool {
if (1 === $this->server
->getInt('IIS_WasUrlRewritten')) {
$this->isIisRewrite = true;
$this->server
->remove('IIS_WasUrlRewritten');
}
return $this->isIisRewrite;
}