Correct return code on PUT modified.

This commit is contained in:
Andrew McMillan 2010-06-23 22:36:14 +12:00
parent 1c54c5b410
commit 50fca47f06
4 changed files with 4 additions and 2 deletions

View File

@ -82,4 +82,5 @@ $qry->QDo("SELECT write_sync_change( $collection_id, $response_code, :dav_name)"
$qry = new AwlQuery('COMMIT');
if ( !$qry->Exec('move') ) rollback(500);
if ( $response_code == 200 ) $response_code = 204;
$request->DoResponse( $response_code );

View File

@ -92,4 +92,5 @@ $qry->QDo("SELECT write_sync_change( $collection_id, $response_code, :dav_name)"
if ( !$qry->QDo('COMMIT') ) rollback(500);
if ( $response_code == 200 ) $response_code = 204;
$request->DoResponse( $response_code );

View File

@ -1,4 +1,4 @@
HTTP/1.1 200 OK
HTTP/1.1 204 No Content
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind, calendar-auto-schedule
Content-Length: 0

View File

@ -1,6 +1,6 @@
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
HTTP/1.1 204 No Content
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind, calendar-auto-schedule
Content-Length: 0