You are here

private function Client::updateServerFromUri in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::updateServerFromUri()
1 call to Client::updateServerFromUri()
Client::followRedirect in vendor/symfony/browser-kit/Client.php
Follow redirects?

File

vendor/symfony/browser-kit/Client.php, line 558

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

private function updateServerFromUri($server, $uri) {
  $server['HTTP_HOST'] = $this
    ->extractHost($uri);
  $scheme = parse_url($uri, PHP_URL_SCHEME);
  $server['HTTPS'] = null === $scheme ? $server['HTTPS'] : 'https' == $scheme;
  unset($server['HTTP_IF_NONE_MATCH'], $server['HTTP_IF_MODIFIED_SINCE']);
  return $server;
}