• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/webdav.php
  • Класс: CDavWebDav
  • Вызов: CDavWebDav::OPTIONSWrapper
protected function OPTIONSWrapper()
{
	$response = $this->response;
	$response->AddHeader("MS-Author-Via: DAV");

	$arAllowableMethods = $this->GetAllowableMethods();

	$arDav = array(1);
	if (isset($arAllowableMethods['LOCK']))
	{
		$arDav[] = 2;
	}

	if (method_exists($this, 'OPTIONS'))
	{
		$this->OPTIONS($arDav, $arAllowableMethods);
	}

	$response->SetHttpStatus("200 OK");
	$response->AddHeader("DAV: ".implode(",", $arDav));
	$response->AddHeader("Allow: ".implode(",", $arAllowableMethods));
	$response->AddHeader("Content-length: 0");
}