mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
9b34773fdc
commit
296aa09376
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue