Skip to content

Commit

Permalink
fix: OPTIONS is rejected at DAV level
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi committed Oct 17, 2023
1 parent 2ed95a4 commit 5874935
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Controller/DAVController.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ private function initExceptionListener()
*/
public function dav(Request $request, string $path)
{
if ($request->getMethod() === "OPTIONS") {
return new Response();
}

// \Sabre\DAV\Server does not let us use a custom SAPI, and its behaviour
// is to directly output headers and content to php://output. Hence, we
// let the headers pass (we have not choice) and capture the output in a
Expand Down

0 comments on commit 5874935

Please sign in to comment.