modifié: superTornado.py
This commit is contained in:
parent
b84dfe96e9
commit
0fce525080
@ -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):
|
||||
|
Reference in New Issue
Block a user