Permalink
Browse files

Support for /ping

  • Loading branch information...
1 parent 34479a6 commit 9a319b18203b8ed41e3eb9033d1c5636096e55a9 @cmouse cmouse committed with Habbie Jun 26, 2013
@@ -172,6 +172,7 @@ def do_POST(req,res)
be = Handler.new
server.mount "/dns", DNSBackendHandler, be
+server.mount_proc("/ping"){ |req,resp| resp.body = "pong" }
trap('INT') { server.stop }
trap('TERM') { server.stop }
@@ -51,6 +51,7 @@ def do_POST(req,res)
be = Handler.new
server.mount "/dns", DNSBackendHandler, be
+server.mount_proc("/ping"){ |req,resp| resp.body = "pong" }
trap('INT') { server.stop }
trap('TERM') { server.stop }
@@ -52,7 +52,8 @@ def do_POST(req,res)
be = Handler.new
server.mount "/dns", DNSBackendHandler, be
-
+server.mount_proc("/ping"){ |req,resp| resp.body = "pong" }
+
trap('INT') { server.stop }
trap('TERM') { server.stop }

0 comments on commit 9a319b1

Please sign in to comment.