modifié: superTornado.py

This commit is contained in:
sidya82 2014-02-28 05:21:00 +01:00
parent b84dfe96e9
commit 0fce525080

View File

@ -82,11 +82,10 @@ class AJAXHandler(BaseHandler):
f = urlopen('http://test:a@192.168.1.15/image.jpg?cidx=791836195', 'image/temp.jpg')
data = f.read()
encoded = base64.b64encode(data)
print encoded
self.write(encoded)
self.finish()
except Exception, e :
self.finish()
class DisconnectionHandler(BaseHandler):
def post(self):