xml vcard option

merge-requests/22/merge
Bob Mottram 2022-02-16 12:05:42 +00:00
parent 10301cfec3
commit 89fca66cfd
2 changed files with 2 additions and 4 deletions

View File

@ -993,7 +993,7 @@ if args.xmlvcard:
domain = '' domain = ''
if args.domain: if args.domain:
domain = args.domain domain = args.domain
test_vcard = get_vcard(True, session, args.vcard, test_vcard = get_vcard(True, session, args.xmlvcard,
None, debug, __version__, http_prefix, domain) None, debug, __version__, http_prefix, domain)
if test_vcard: if test_vcard:
print(test_vcard) print(test_vcard)

View File

@ -260,9 +260,7 @@ def get_vcard(xml_format: bool,
'Accept': 'text/vcard' 'Accept': 'text/vcard'
} }
if xml_format: if xml_format:
headers = { headers['Accept'] = 'text/vcard+xml'
'Accept': 'text/vcard+xml'
}
session_params = {} session_params = {}
session_headers = {} session_headers = {}
if headers: if headers: