main
Bob Mottram 2024-08-14 10:38:43 +01:00
parent 9b34773fdc
commit 296aa09376
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ def show_vcard(self, base_dir: str, path: str, calling_domain: str,
referer_domain: str, domain: str) -> bool: referer_domain: str, domain: str) -> bool:
"""Returns a vcard for the given account """Returns a vcard for the given account
""" """
print('DEBUG: vcard path 1 ' + path + ' ' + str(self.headers))
if not has_accept(self, calling_domain): if not has_accept(self, calling_domain):
return False return False
if path.endswith('.vcf'): if path.endswith('.vcf'):
@ -36,7 +37,7 @@ def show_vcard(self, base_dir: str, path: str, calling_domain: str,
'text/vcard', 'text/vcard',
'application/vcard+xml' 'application/vcard+xml'
) )
print('DEBUG: vcard path ' + path) print('DEBUG: vcard path 2 ' + path)
if not string_contains(accept_str, vcard_mime_types): if not string_contains(accept_str, vcard_mime_types):
return False return False
print('Downloading vcard ' + path) print('Downloading vcard ' + path)