$this->redirect =
$this->internalResponse->
getHeader('Location'
);
} else { $this->redirect = null;
} if ($this->followRedirects &&
$this->redirect
) { $this->redirects
[serialize($this->history->
current())] = true;
return $this->crawler =
$this->
followRedirect();
} $this->crawler =
$this->
createCrawlerFromContent($this->internalRequest->
getUri(),
$this->internalResponse->
getContent(),
$this->internalResponse->
getHeader('Content-Type'
) ?? ''
);
// Check for meta refresh redirect
if ($this->followMetaRefresh && null !==
$redirect =
$this->
getMetaRefreshUrl()) { $this->redirect =
$redirect;
$this->redirects
[serialize($this->history->
current())] = true;
$this->crawler =
$this->
followRedirect();
} return $this->crawler;
}