Remove debug

main
Bob Mottram 2024-08-14 10:57:18 +01:00
parent 296aa09376
commit b7380f11ff
1 changed files with 2 additions and 2 deletions

View File

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