Browse Source

Removed circular dependency by going over a proxy. This is the better solution anyway

pull/112/head
Armin Ronacher 15 years ago
parent
commit
b7109865a3
  1. 6
      flask/helpers.py

6
flask/helpers.py

@ -268,7 +268,7 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
file = open(filename, 'rb')
data = wrap_file(request.environ, file)
rv = Response(data, mimetype=mimetype, headers=headers,
rv = current_app.response_class(data, mimetype=mimetype, headers=headers,
direct_passthrough=True)
rv.cache_control.public = True
@ -365,7 +365,3 @@ class _PackageBoundObject(object):
subfolders use forward slashes as separator.
"""
return open(os.path.join(self.root_path, resource), 'rb')
# circular dependencies between wrappers and helpers
from .wrappers import Response

Loading…
Cancel
Save