Skip to content
Myr

Merge remote-tracking branch 'origin/1.1.x'

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

authored by David Lord · committed by David Lord · parents 909b975, a753150 · Browse files · 3 files+15 added−0 removed
This commit

State

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

Diff stats

3 files+15 added−0 removed

  • tests:+11 added−0 removed
  • other:+4 added−0 removed

3 files+15 added−0 removed

modified:src/flask/helpers.py+2 added
1010 unmodified lines
1011 return os.path.join(self.root_path, self._static_folder)10121013 @static_folder.setter1014 def static_folder(self, value):1015 if value is not None:1016 value = value.rstrip("/\\")1017 self._static_folder = value10181019 @property1020 def static_url_path(self):
147 unmodified lines
modified:tests/test_basic.py+11 added
1424 unmodified lines
1425 assert rv.status_code == 2001426 rv.close()142714281429def test_static_folder_with_ending_slash():1430 app = flask.Flask(__name__, static_folder="static/")14311432 @app.route("/<path:path>")1433 def catch_all(path):1434 return path14351436 rv = app.test_client().get("/catch/all")1437 assert rv.data == b"catch/all"143814391440def test_static_route_with_host_matching():1441 app = flask.Flask(__name__, host_matching=True, static_host="example.com")1442 c = app.test_client()1443 rv = c.get("http://example.com/static/index.html")
536 unmodified lines
modified:CHANGES.rst+2 added
25 unmodified lines
26Unreleased2728- Work around an issue when running the ``flask`` command with an29 external debugger on Windows. :issue:`3297`30- The static route will not catch all URLs if the ``Flask``31 ``static_folder`` argument ends with a slash. :issue:`3452`323334Version 1.1.135-------------
1003 unmodified lines