forked from orbit-oss/flask
fix subdomain for static rule on registering module
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
This commit is contained in:
parent
4c76607553
commit
9ae4eba986
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ def _register_module(module, static_path):
|
||||||
state.app.add_url_rule(path + '/<path:filename>',
|
state.app.add_url_rule(path + '/<path:filename>',
|
||||||
endpoint='%s.static' % module.name,
|
endpoint='%s.static' % module.name,
|
||||||
view_func=module.send_static_file,
|
view_func=module.send_static_file,
|
||||||
subdomain=module.subdomain)
|
subdomain=state.subdomain)
|
||||||
return _register
|
return _register
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue