src/GuzzleTranscoder.php
private static function setByCaseInsensitiveKey(array $words, $key, $newValue) {
        foreach ($words as $headerWord => $value) {
            if (strcasecmp($headerWord, $key) === 0) {
                $key = $headerWord;

                break;
            }
        }

        $words[$key] = $newValue;

        return $words;
    }
private static function setByCaseInsensitiveKey(array $words, $key, $newValue) {
        foreach ($words as $headerWord => $value) {
            if (strcasecmp($headerWord, $key) === 0) {
                $key = $headerWord;

                break;
            }
        }

        $words[$key] = $newValue;

        return $words;
    }
Sets array item by case-insensitive key.

@param array $words
@param string $key
@param $newValue

@return array