Permalink
Browse files

* Make url_for subdomain serving be through an explicit template tag …

…parameter, so we don't use random subdomains (as they do not provide performance improvements).
  • Loading branch information...
1 parent 6899731 commit bf2c76516bb3a2cc97bf01e707874c64e949e8cb @dannyakakong committed Jan 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/flask/helpers.py
@@ -329,7 +329,7 @@ def external_url_handler(error, endpoint, **values):
# use a subdomain?
if subdomain:
- if current_app.config['LIVE'] and current_app.config['DEBUG']:
+ if current_app.config['DEBUG'] and is_live:
url = current_app.config['LIVE'][:-1]
else:
url = request.url[:-1]

0 comments on commit bf2c765

Please sign in to comment.