summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index 1751897..2ea0152 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -108,6 +108,9 @@ def remote_query(conn, cmd, path, additional_headers, body):
print("> " + line)
print()
+ if isinstance(body, str):
+ body = body.encode('utf-8')
+
conn.request(cmd, path, headers=headers, body=body)
resp = conn.getresponse()