forked from indymedia/epicyon
Don't clear busy state before it is set
parent
ec672b81a9
commit
0d354d81b3
16
daemon.py
16
daemon.py
|
@ -902,10 +902,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
pageNumber,donateUrl).encode()
|
pageNumber,donateUrl).encode()
|
||||||
self._set_headers('text/html',len(msg),cookie)
|
self._set_headers('text/html',len(msg),cookie)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
self.server.GETbusy=False
|
#self.server.GETbusy=False
|
||||||
return
|
return
|
||||||
self._redirect_headers(originPathStr,cookie)
|
self._redirect_headers(originPathStr,cookie)
|
||||||
self.server.GETbusy=False
|
#self.server.GETbusy=False
|
||||||
return
|
return
|
||||||
|
|
||||||
# remove a shared item
|
# remove a shared item
|
||||||
|
@ -920,11 +920,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
actor,shareName).encode()
|
actor,shareName).encode()
|
||||||
if not msg:
|
if not msg:
|
||||||
self._redirect_headers(actor+'/inbox',cookie)
|
self._redirect_headers(actor+'/inbox',cookie)
|
||||||
self.server.GETbusy=False
|
#self.server.GETbusy=False
|
||||||
return
|
return
|
||||||
self._set_headers('text/html',len(msg),cookie)
|
self._set_headers('text/html',len(msg),cookie)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
self.server.GETbusy=False
|
#self.server.GETbusy=False
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.path.startswith('/terms'):
|
if self.path.startswith('/terms'):
|
||||||
|
@ -933,7 +933,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.domainFull).encode()
|
self.server.domainFull).encode()
|
||||||
self._login_headers('text/html',len(msg))
|
self._login_headers('text/html',len(msg))
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
self.server.GETbusy=False
|
#self.server.GETbusy=False
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.path.startswith('/about'):
|
if self.path.startswith('/about'):
|
||||||
|
@ -942,12 +942,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.domainFull).encode()
|
self.server.domainFull).encode()
|
||||||
self._login_headers('text/html',len(msg))
|
self._login_headers('text/html',len(msg))
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
self.server.GETbusy=False
|
#self.server.GETbusy=False
|
||||||
return
|
return
|
||||||
|
|
||||||
# send robots.txt if asked
|
# send robots.txt if asked
|
||||||
if self._robotsTxt():
|
if self._robotsTxt():
|
||||||
self.server.GETbusy=False
|
#self.server.GETbusy=False
|
||||||
return
|
return
|
||||||
|
|
||||||
# if not authorized then show the login screen
|
# if not authorized then show the login screen
|
||||||
|
@ -981,7 +981,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.send_header('Content-Length', '0')
|
self.send_header('Content-Length', '0')
|
||||||
self.send_header('X-Robots-Tag','noindex')
|
self.send_header('X-Robots-Tag','noindex')
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
self.server.GETbusy=False
|
#self.server.GETbusy=False
|
||||||
return
|
return
|
||||||
|
|
||||||
# get css
|
# get css
|
||||||
|
|
Loading…
Reference in New Issue