diff --git a/src/include/z_caldav.php b/src/include/z_caldav.php
index bc0a82929b85cb3cb5cf1f11228d6a8333f7c49e..d1c731a991281d2c04d0ef46eca435a75898ef8f 100644
--- a/src/include/z_caldav.php
+++ b/src/include/z_caldav.php
@@ -250,6 +250,11 @@ class CalDAVClient {
 		$url = $this->server . $url;
 
 		curl_setopt($this->curl, CURLOPT_URL, $url);
+		if ($method == 'HEAD') {
+			curl_setopt($this->curl, CURLOPT_NOBODY, true);
+		} else {
+			curl_setopt($this->curl, CURLOPT_NOBODY, false);
+		}
 		curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, $method);
 		curl_setopt($this->curl, CURLOPT_CONNECTTIMEOUT, 30); // 30 seconds it's already too big