better fix for dav headers already sent issue

This commit is contained in:
zotlabs
2017-06-26 01:36:33 -07:00
parent 7f982a0778
commit 5dc638c5b3
2 changed files with 4 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ use Sabre\DAV;
*/
class Browser extends DAV\Browser\Plugin {
public $build_page = false;
/**
* @see set_writeable()
* @see \\Sabre\\DAV\\Auth\\Backend\\BackendInterface
@@ -257,7 +258,7 @@ class Browser extends DAV\Browser\Plugin {
}
}
$this->server->httpResponse->setHeader('Content-Security-Policy', "script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'");
construct_page();
$this->build_page = true;
}
/**