mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
d918368284
commit
e9a4b25c02
|
@ -1196,16 +1196,20 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
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
|
||||||
|
print('vcard 1')
|
||||||
if 'application/' in accept_str:
|
if 'application/' in accept_str:
|
||||||
return False
|
return False
|
||||||
|
print('vcard 2')
|
||||||
if not path.startswith('/users/'):
|
if not path.startswith('/users/'):
|
||||||
self._400()
|
self._400()
|
||||||
return True
|
return True
|
||||||
|
print('vcard 3')
|
||||||
nickname = path.split('/users/')[1]
|
nickname = path.split('/users/')[1]
|
||||||
if '/' in nickname:
|
if '/' in nickname:
|
||||||
nickname = nickname.split('/')[0]
|
nickname = nickname.split('/')[0]
|
||||||
if '?' in nickname:
|
if '?' in nickname:
|
||||||
nickname = nickname.split('?')[0]
|
nickname = nickname.split('?')[0]
|
||||||
|
print('vcard 4')
|
||||||
if self.server.vcard_is_active:
|
if self.server.vcard_is_active:
|
||||||
print('vcard is busy during request from ' + str(referer_domain))
|
print('vcard is busy during request from ' + str(referer_domain))
|
||||||
self._503()
|
self._503()
|
||||||
|
|
Loading…
Reference in New Issue