mirror of https://gitlab.com/bashrc2/epicyon
No http
parent
c94b348f8d
commit
87e828deea
|
@ -494,8 +494,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
htmlGET=True
|
htmlGET=True
|
||||||
|
|
||||||
# replace https://domain/@nick with https://domain/users/nick
|
# replace https://domain/@nick with https://domain/users/nick
|
||||||
if htmlGET and '/@' in self.path and \
|
if htmlGET and self.path.startswith('/@'):
|
||||||
(self.path.startswith('http') or self.path.startswith('dat')):
|
|
||||||
self.path=self.path.replace('/@','/users/')
|
self.path=self.path.replace('/@','/users/')
|
||||||
|
|
||||||
# treat shared inbox paths consistently
|
# treat shared inbox paths consistently
|
||||||
|
|
Loading…
Reference in New Issue