mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
- Bump version to 25.0.2 - Update copyright year to 2026 in LICENSE and NOTICE - Add license headers to all Python source files - Add changelog entry for 25.0.2
19 lines
397 B
Python
19 lines
397 B
Python
#
|
|
# This file is part of gunicorn released under the MIT license.
|
|
# See the NOTICE for more information.
|
|
|
|
import io
|
|
|
|
from flask import Flask, send_file
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/')
|
|
def index():
|
|
buf = io.BytesIO()
|
|
buf.write(b'hello world')
|
|
buf.seek(0)
|
|
return send_file(buf,
|
|
attachment_filename="testing.txt",
|
|
as_attachment=True)
|