protected function normalizeHeaderName($name)
    {
        $name = str_replace('-', '_', strtoupper($name));
        if (!in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'])) {
            $name = 'HTTP_' . $name;
        }

        return $name;
    }
protected function normalizeHeaderName($name)
    {
        $name = str_replace('-', '_', strtoupper($name));
        if (!in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'])) {
            $name = 'HTTP_' . $name;
        }

        return $name;
    }
protected function normalizeHeaderName ( $ name ) { $ name = str_replace ( '-' , '_' , strtoupper ( $ name ) ) ; if ( ! in_array ( $ name , [ 'CONTENT_LENGTH' , 'CONTENT_TYPE' ] ) ) { $ name = 'HTTP_' . $ name ; } return $ name ; }
Normalize a header name into the SERVER version.

@param string $name The header name.
@return string The normalized header name.
Normalize a header name into the SERVER version .