flask: how to handle application/octet-stream,app.run()