From 8482c8b0245d1d8d8f44dc19b9896803c85b91f9 Mon Sep 17 00:00:00 2001 From: Daniel Gerber Date: Thu, 6 Jan 2011 16:43:49 +0100 Subject: [PATCH] fix subdomain for static rule on registering module --- flask/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/module.py b/flask/module.py index 5f3c8c1f..4e719a4e 100644 --- a/flask/module.py +++ b/flask/module.py @@ -32,7 +32,7 @@ def _register_module(module, static_path): state.app.add_url_rule(path + '/', endpoint='%s.static' % module.name, view_func=module.send_static_file, - subdomain=module.subdomain) + subdomain=state.subdomain) return _register