diff --git a/epicyon.py b/epicyon.py index ec6644a2b..a98d161a7 100644 --- a/epicyon.py +++ b/epicyon.py @@ -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) diff --git a/session.py b/session.py index 5e4c57862..35671d5d6 100644 --- a/session.py +++ b/session.py @@ -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: