diff options
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-x | contrib/caldav/calcurse-caldav.py | 3 |
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() |