private function normalizeHeaders(array $headers)
    {
        $ignoreHeaders = $this->ignoreHeaders;

        foreach ($ignoreHeaders as $ignoreHeader) {
            $headers = array_filter($headers, function($header) use ($ignoreHeader) {
                return stripos($header, $ignoreHeader.':') !== 0;
            });
        }

        return $headers;
    }
private function normalizeHeaders(array $headers)
    {
        $ignoreHeaders = $this->ignoreHeaders;

        foreach ($ignoreHeaders as $ignoreHeader) {
            $headers = array_filter($headers, function($header) use ($ignoreHeader) {
                return stripos($header, $ignoreHeader.':') !== 0;
            });
        }

        return $headers;
    }
private function normalizeHeaders ( array $ headers ) { $ ignoreHeaders = $ this -> ignoreHeaders ; foreach ( $ ignoreHeaders as $ ignoreHeader ) { $ headers = array_filter ( $ headers , function ( $ header ) use ( $ ignoreHeader ) { return stripos ( $ header , $ ignoreHeader . ':' ) !== 0 ; } ) ; } return $ headers ; }
Get only those headers that should not be ignored

@param array $headers
@return array
Get only those headers that should not be ignored