mirror of https://gitlab.com/bashrc2/epicyon
xml vcard option
parent
10301cfec3
commit
89fca66cfd
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue