protected function mapHeaderKeys(array $headers)
    {
        $phpHeaders = array();
        foreach ($headers as $key => $value) {
            $phpHeaders['HTTP_' . str_replace('-', '_', strtoupper($key))] = $value;
        }

        return $phpHeaders;
    }
protected function mapHeaderKeys(array $headers)
    {
        $phpHeaders = array();
        foreach ($headers as $key => $value) {
            $phpHeaders['HTTP_' . str_replace('-', '_', strtoupper($key))] = $value;
        }

        return $phpHeaders;
    }
protected function mapHeaderKeys ( array $ headers ) { $ phpHeaders = array ( ) ; foreach ( $ headers as $ key => $ value ) { $ phpHeaders [ 'HTTP_' . str_replace ( '-' , '_' , strtoupper ( $ key ) ) ] = $ value ; } return $ phpHeaders ; }
Map header keys

@param array $headers
@return array
Map header keys