mirror of https://gitlab.com/bashrc2/epicyon
Authorization needs user path
parent
029d8bfcbf
commit
4d02c11c89
|
@ -12678,7 +12678,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.debug)
|
self.server.debug)
|
||||||
|
|
||||||
# show a performance graph
|
# show a performance graph
|
||||||
if authorized and self.path.startswith('/performance?graph='):
|
if authorized and '/performance?graph=' in self.path:
|
||||||
graph = self.path.split('?graph=')[1]
|
graph = self.path.split('?graph=')[1]
|
||||||
if htmlGET and not graph.endswith('.json'):
|
if htmlGET and not graph.endswith('.json'):
|
||||||
msg = \
|
msg = \
|
||||||
|
@ -12703,6 +12703,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
msglen,
|
msglen,
|
||||||
None, callingDomain, False)
|
None, callingDomain, False)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
|
fitnessPerformance(GETstartTime, self.server.fitness,
|
||||||
|
'_GET', 'graph json',
|
||||||
|
self.server.debug)
|
||||||
|
return
|
||||||
|
|
||||||
# show the main blog page
|
# show the main blog page
|
||||||
if htmlGET and (self.path == '/blog' or
|
if htmlGET and (self.path == '/blog' or
|
||||||
|
|
Loading…
Reference in New Issue