mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-04 01:54:07 +02:00
add more tests
This commit is contained in:
parent
1e7efdd48b
commit
5c2a3f1b02
11 changed files with 337 additions and 5 deletions
|
|
@ -135,7 +135,9 @@ class SearchPlugin extends ServerPlugin {
|
|||
case '{DAV:}query-schema-discovery':
|
||||
return $this->discover->handelDiscoverRequest($xml, $request, $response);
|
||||
default:
|
||||
throw new BadRequest('Unexpected document type: ' . $documentType . ' for this Content-Type');
|
||||
$response->setStatus(400);
|
||||
$response->setBody('Unexpected document type: ' . $documentType . ' for this Content-Type, expected {DAV:}searchrequest or {DAV:}query-schema-discovery');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue