From 9ae4eba9861bfa959bac6adfaf5842ef7d937eb6 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 Signed-off-by: Armin Ronacher --- 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