protected function Request::changedHeader

Check to see if the modified headers need to reset any of the managed headers like cache-control

Parameters

string $header Header that changed:

Overrides AbstractMessage::changedHeader

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php, line 680

Class

Request
HTTP request class to send requests

Namespace

Guzzle\Http\Message

Code

protected function changedHeader($header) {
  parent::changedHeader($header);
  if ($header == 'host') {

    // If the Host header was changed, be sure to update the internal URL
    $this
      ->setHost((string) $this
      ->getHeader('Host'));
  }
}