You are here

function normalize_header_keys in Auth0 Single Sign On 8.2

Creates an associative array of lowercase header names to the actual header casing.

Parameters

array $headers:

Return value

array

File

vendor/guzzlehttp/guzzle/src/functions.php, line 225

Namespace

GuzzleHttp

Code

function normalize_header_keys(array $headers) {
  $result = [];
  foreach (array_keys($headers) as $key) {
    $result[strtolower($key)] = $key;
  }
  return $result;
}