forked from orbit-oss/flask
Remove ending slash from static_url_path
This commit is contained in:
parent
7f98a28432
commit
2039e2e3b6
4 changed files with 15 additions and 2 deletions
|
|
@ -587,7 +587,7 @@ class Flask(_PackageBoundObject):
|
|||
bool(static_host) == host_matching
|
||||
), "Invalid static_host/host_matching combination"
|
||||
self.add_url_rule(
|
||||
self.static_url_path + "/<path:filename>",
|
||||
self.static_url_path.rstrip("/") + "/<path:filename>",
|
||||
endpoint="static",
|
||||
host=static_host,
|
||||
view_func=self.send_static_file,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue