You are here

private function CurlFactory::removeHeader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php \GuzzleHttp\Handler\CurlFactory::removeHeader()

Remove a header from the options array.

Parameters

string $name Case-insensitive header to remove:

array $options Array of options to modify:

1 call to CurlFactory::removeHeader()
CurlFactory::applyBody in vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php

File

vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php, line 304

Class

CurlFactory
Creates curl resources from a request

Namespace

GuzzleHttp\Handler

Code

private function removeHeader($name, array &$options) {
  foreach (array_keys($options['_headers']) as $key) {
    if (!strcasecmp($key, $name)) {
      unset($options['_headers'][$key]);
      return;
    }
  }
}