mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-19 01:34:26 +00:00
Response code for a successful PUT should be 204 No Content rather than 200 OK.
This commit is contained in:
parent
811a0e660c
commit
aa0a2867bc
@ -193,5 +193,5 @@ $qry->Exec("PUT");
|
|||||||
dbg_error_log( "PUT", "User: %d, ETag: %s, Path: %s", $session->user_no, $etag, $request->path);
|
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) ) );
|
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) );
|
||||||
?>
|
?>
|
||||||
Loading…
x
Reference in New Issue
Block a user