calcurse-caldav: Fix duplicate Content-Type prefix

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2016-01-25 08:23:04 +01:00
parent 2f82457bbc
commit 4a14103d38

View File

@ -85,9 +85,9 @@ def get_auth_headers():
def remote_query(cmd, path, additional_headers, body):
headers = get_auth_headers()
if cmd == 'PUT':
headers['Content-Type'] = 'Content-Type: text/calendar; charset=utf-8'
headers['Content-Type'] = 'text/calendar; charset=utf-8'
else:
headers['Content-Type'] = 'Content-Type: application/xml; charset=utf-8'
headers['Content-Type'] = 'application/xml; charset=utf-8'
headers.update(additional_headers)
if debug: