mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Fix inverted logic around (If-Match|If-None-Match)
This commit is contained in:
parent
bda235141a
commit
8e2e01ca9b
@ -247,7 +247,7 @@ class CalDAVClient {
|
||||
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, "PUT" );
|
||||
curl_setopt($this->curl, CURLOPT_HEADER, true);
|
||||
if ( $etag != null ) {
|
||||
$this->SetMatch( ($etag == '*'), $etag );
|
||||
$this->SetMatch( ($etag != '*'), $etag );
|
||||
}
|
||||
$this->SetContentType("text/icalendar");
|
||||
$headers = $this->DoRequest($relative_url);
|
||||
@ -275,7 +275,7 @@ class CalDAVClient {
|
||||
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, "DELETE" );
|
||||
curl_setopt($this->curl, CURLOPT_HEADER, true);
|
||||
if ( $etag != null ) {
|
||||
$this->SetMatch( false, $etag );
|
||||
$this->SetMatch( true, $etag );
|
||||
}
|
||||
$this->DoRequest($relative_url);
|
||||
return $this->resultcode;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user