Updated handler.py and test_hanlder.py

This commit is contained in:
Sheng
2018-04-25 19:01:54 +08:00
parent 50ab045c1f
commit d1177bc2c5
2 changed files with 14 additions and 23 deletions
+2
View File
@@ -35,7 +35,9 @@ class MixinHandler(object):
else:
if ip: # does not validate ip and port here
return (ip, port)
logging.warn('Bad nginx configuration.')
return False
class IndexHandler(MixinHandler, tornado.web.RequestHandler):