forked from orbit-oss/flask
Update flask/app.py
This commit is contained in:
parent
a3cb2a3382
commit
36194697ae
1 changed files with 1 additions and 1 deletions
|
|
@ -1468,7 +1468,7 @@ class Flask(_PackageBoundObject):
|
|||
"""
|
||||
funcs = self.url_default_functions.get(None, ())
|
||||
if '.' in endpoint:
|
||||
bp = endpoint.split('.', 1)[0]
|
||||
bp = endpoint.rsplit('.', 1)[0]
|
||||
funcs = chain(funcs, self.url_default_functions.get(bp, ()))
|
||||
for func in funcs:
|
||||
func(endpoint, values)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue