xml vcard option

main
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 = ''
if 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)
if test_vcard:
print(test_vcard)

View File

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