forked from indymedia/epicyon
http busy code
parent
51e7454a3c
commit
1c2db15263
|
@ -92,7 +92,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
try:
|
try:
|
||||||
if self.GETbusy:
|
if self.GETbusy:
|
||||||
self.send_response(400)
|
self.send_response(429)
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
return
|
return
|
||||||
except:
|
except:
|
||||||
|
@ -150,7 +150,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
def do_POST(self):
|
def do_POST(self):
|
||||||
try:
|
try:
|
||||||
if self.POSTbusy:
|
if self.POSTbusy:
|
||||||
self.send_response(400)
|
self.send_response(429)
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
return
|
return
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue