Skip to content

Commit

Permalink
add uptime check to end2endhandler
Browse files Browse the repository at this point in the history
  • Loading branch information
U-rotop\rowena committed Apr 26, 2010
1 parent 101037b commit 9404264
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/rapidsms/backends/httphandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,12 @@ class End2EndHandler(RapidBaseHttpHandler):


def do_GET(self):
params = get_params(self)
self.handle_params(params)
# monitoring URL
if _is_uptime_check(self):
self.respond(200, "success")
else:
params = get_params(self)
self.handle_params(params)

def do_POST(self):
params = post_params(self)
Expand Down

0 comments on commit 9404264

Please sign in to comment.