mirror of https://gitlab.com/bashrc2/epicyon
vcard extension
parent
178b517804
commit
997a838ecb
|
@ -1193,6 +1193,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
"""
|
"""
|
||||||
if not self._has_accept(calling_domain):
|
if not self._has_accept(calling_domain):
|
||||||
return False
|
return False
|
||||||
|
if path.endswith('.vcf'):
|
||||||
|
path = path.split('.vcf')[0]
|
||||||
|
accept_str = 'text/vcard'
|
||||||
|
else:
|
||||||
accept_str = self.headers['Accept']
|
accept_str = self.headers['Accept']
|
||||||
if 'text/vcard' not in accept_str:
|
if 'text/vcard' not in accept_str:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue