private function CurlFactory::removeHeader in Auth0 Single Sign On 8.2
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 328
Class
- CurlFactory
- Creates curl resources from a request
Namespace
GuzzleHttp\HandlerCode
private function removeHeader($name, array &$options) {
foreach (array_keys($options['_headers']) as $key) {
if (!strcasecmp($key, $name)) {
unset($options['_headers'][$key]);
return;
}
}
}