Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 09e7b5e · Browse files · 1 file+2 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−6 removed

  • other:+2 added−6 removed

1 file+2 added−6 removed

modified:flask/helpers.py+2 added-6 removed
266 unmodified lines
267 if file is None:268 file = open(filename, 'rb')269 data = wrap_file(request.environ, file)270271 rv = Response(data, mimetype=mimetype, headers=headers,272 direct_passthrough=True)271 rv = current_app.response_class(data, mimetype=mimetype, headers=headers,272 direct_passthrough=True)273274 rv.cache_control.public = True275 if cache_timeout:276 rv.cache_control.max_age = cache_timeout
87 unmodified lines
364 :param resource: the name of the resource. To access resources within365 subfolders use forward slashes as separator.366 """367 return open(os.path.join(self.root_path, resource), 'rb')368369370# circular dependencies between wrappers and helpers371from .wrappers import Response