• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/connection.php
  • Класс: CDavConnectionResult
  • Вызов: CDavConnectionResult::Fetch
function Fetch()
{
	$res = parent::Fetch();

	if (
		$res
		&& isset(
			$res['SERVER_SCHEME'],
			$res['SERVER_HOST'],
			$res['SERVER_PORT'],
			$res['SERVER_PATH']
		)
	)
	{
		$res["SERVER"] = $res["SERVER_SCHEME"]."://".$res["SERVER_HOST"];
		if (
			($res["SERVER_SCHEME"] === "https" && (int)$res["SERVER_PORT"] !== 443)
			|| ($res["SERVER_SCHEME"] === "http" && (int)$res["SERVER_PORT"] !== 80)
		)
		{
			$res["SERVER"] .= ":" . $res["SERVER_PORT"];
		}
		$res["SERVER"] .= $res["SERVER_PATH"];
	}

	return $res;
}