Browse Source

fix subdomain for static rule on registering module

Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
pull/162/head
Daniel Gerber 14 years ago committed by Armin Ronacher
parent
commit
9ae4eba986
  1. 2
      flask/module.py

2
flask/module.py

@ -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

Loading…
Cancel
Save