summaryrefslogtreecommitdiff
path: root/contrib/caldav/calcurse-caldav.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/caldav/calcurse-caldav.py')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index ff6bdc1..f7eb306 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -84,7 +84,10 @@ def get_auth_headers():
def remote_query(cmd, path, additional_headers, body):
headers = get_auth_headers()
- headers['Content-Type'] = 'Content-Type: text/calendar; charset=utf-8'
+ if cmd == 'PUT':
+ headers['Content-Type'] = 'Content-Type: text/calendar; charset=utf-8'
+ else:
+ headers['Content-Type'] = 'Content-Type: application/xml; charset=utf-8'
headers.update(additional_headers)
if debug: