mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-21 17:06:22 +00:00
Correct response code per RFC2518
This commit is contained in:
parent
ed65ec1294
commit
7fae773735
@ -26,7 +26,7 @@ if ( ! $qry->Exec("MKCALENDAR") ) {
|
||||
$request->DoResponse( 500, translate("Error querying database.") );
|
||||
}
|
||||
if ( $qry->rows != 0 ) {
|
||||
$request->DoResponse( 412, translate("A collection already exists at that location.") );
|
||||
$request->DoResponse( 405, translate("A collection already exists at that location.") );
|
||||
}
|
||||
|
||||
$sql = "INSERT INTO collection ( user_no, parent_container, dav_name, dav_etag, dav_displayname, is_calendar, created, modified ) VALUES( ?, ?, ?, ?, ?, ?, current_timestamp, current_timestamp );";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user