# Return the buffer as a response return send_file( buffer, as_attachment=True, attachment_filename='code.txt', mimetype='text/plain' )
# Return the buffer as a response return send_file( buffer, as_attachment=True, attachment_filename='code.txt', mimetype='text/plain' )