fix subdomain for static rule on registering module

Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
This commit is contained in:
Daniel Gerber 2011-01-06 16:43:49 +01:00 committed by Armin Ronacher
parent 4c76607553
commit 9ae4eba986

View file

@ -32,7 +32,7 @@ def _register_module(module, static_path):
state.app.add_url_rule(path + '/<path:filename>',
endpoint='%s.static' % module.name,
view_func=module.send_static_file,
subdomain=module.subdomain)
subdomain=state.subdomain)
return _register