calcurse-caldav: Fix duplicate Content-Type prefix
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
2f82457bbc
commit
4a14103d38
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user