mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-24 17:36:39 +00:00
Fix bug in handling of modified event where client does not send an
"If-None-Match" header.
This commit is contained in:
parent
eb37805357
commit
3bc7007f63
@ -102,8 +102,8 @@ if ( $put_action_type == 'INSERT' ) {
|
||||
header("HTTP/1.1 201 Created", true, 201);
|
||||
}
|
||||
else {
|
||||
$qry = new PgQuery( "UPDATE caldav_data SET caldav_data=?, dav_etag=?, caldav_type=?, logged_user=?, modified=current_timestamp WHERE user_no=? AND dav_name=? AND dav_etag=?",
|
||||
$raw_post, $etag, $ic->type, $session->user_no, $path_user_no, $request_path, $etag_if_match );
|
||||
$qry = new PgQuery( "UPDATE caldav_data SET caldav_data=?, dav_etag=?, caldav_type=?, logged_user=?, modified=current_timestamp WHERE user_no=? AND dav_name=?",
|
||||
$raw_post, $etag, $ic->type, $session->user_no, $path_user_no, $request_path );
|
||||
$qry->Exec("PUT");
|
||||
|
||||
header("HTTP/1.1 201 Replaced", true, 201);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user