You are here

private function CurlFactory::removeHeader in Lockr 7.3

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 313

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;
    }
  }
}