From aa0a2867bce4e5e59ac70d274a129e4e16e7d4a7 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 2 Mar 2007 11:48:36 +1300 Subject: [PATCH] Response code for a successful PUT should be 204 No Content rather than 200 OK. --- inc/caldav-PUT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-PUT.php b/inc/caldav-PUT.php index 3b4c5fa1..abe29d76 100644 --- a/inc/caldav-PUT.php +++ b/inc/caldav-PUT.php @@ -193,5 +193,5 @@ $qry->Exec("PUT"); dbg_error_log( "PUT", "User: %d, ETag: %s, Path: %s", $session->user_no, $etag, $request->path); header(sprintf('ETag: "%s"', (isset($bogus_etag) ? $bogus_etag : $etag) ) ); -$request->DoResponse( ($put_action_type == 'INSERT' ? 201 : 200) ); +$request->DoResponse( ($put_action_type == 'INSERT' ? 201 : 204) ); ?> \ No newline at end of file