Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AbstractBrowser.php

function AbstractBrowser::updateServerFromUri

1 call to AbstractBrowser::updateServerFromUri()
AbstractBrowser::followRedirect in vendor/symfony/browser-kit/AbstractBrowser.php
Follow redirects?

File

vendor/symfony/browser-kit/AbstractBrowser.php, line 677

Class

AbstractBrowser
Simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

private function updateServerFromUri(array $server, string $uri) : array {
    $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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal