Advertisement
Guest User

Untitled

a guest
Aug 25th, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. from flask import Flask, send_file
  4.  
  5. app = Flask(__name__)
  6.  
  7. @app.route('/')
  8. def send_big_file():
  9.     # make some_big_file with
  10.     #   $ dd if=/dev/zero bs=1M count=600 of=some_big_file
  11.     # or similar
  12.     return send_file('some_big_file', conditional=True)
  13.  
  14. if __name__ == '__main__':
  15.     app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement