mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +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_CUSTOMREQUEST, "PUT" );
|
||||||
curl_setopt($this->curl, CURLOPT_HEADER, true);
|
curl_setopt($this->curl, CURLOPT_HEADER, true);
|
||||||
if ( $etag != null ) {
|
if ( $etag != null ) {
|
||||||
$this->SetMatch( ($etag == '*'), $etag );
|
$this->SetMatch( ($etag != '*'), $etag );
|
||||||
}
|
}
|
||||||
$this->SetContentType("text/icalendar");
|
$this->SetContentType("text/icalendar");
|
||||||
$headers = $this->DoRequest($relative_url);
|
$headers = $this->DoRequest($relative_url);
|
||||||
@ -275,7 +275,7 @@ class CalDAVClient {
|
|||||||
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, "DELETE" );
|
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, "DELETE" );
|
||||||
curl_setopt($this->curl, CURLOPT_HEADER, true);
|
curl_setopt($this->curl, CURLOPT_HEADER, true);
|
||||||
if ( $etag != null ) {
|
if ( $etag != null ) {
|
||||||
$this->SetMatch( false, $etag );
|
$this->SetMatch( true, $etag );
|
||||||
}
|
}
|
||||||
$this->DoRequest($relative_url);
|
$this->DoRequest($relative_url);
|
||||||
return $this->resultcode;
|
return $this->resultcode;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user