main
Bob Mottram 2024-08-14 09:56:47 +01:00
parent 09e0dc5e9b
commit 533473afb8
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ def show_vcard(self, base_dir: str, path: str, calling_domain: str,
accept_str = 'text/vcard' accept_str = 'text/vcard'
else: else:
accept_str = self.headers['Accept'] accept_str = self.headers['Accept']
print('vcard Accept: ' + accept_str)
if 'text/vcard' not in accept_str and \ if 'text/vcard' not in accept_str and \
'application/vcard+xml' not in accept_str: 'application/vcard+xml' not in accept_str:
return False return False