Commit 1ee9358b authored by Matthew Taylor's avatar Matthew Taylor

Attempt 2 – reprioritize header conditionals

parent 8eaf3945
...@@ -94,8 +94,8 @@ var getConditionNameForRoute = function (route, type) { ...@@ -94,8 +94,8 @@ var getConditionNameForRoute = function (route, type) {
}; };
var getHeaderNameForRoute = function (route) { var getHeaderNameForRoute = function (route) {
if (route.name) return 'rewrites/' + route.name;
if (route.redirect) return 'redirects/' + route.pattern; if (route.redirect) return 'redirects/' + route.pattern;
if (route.name) return 'rewrites/' + route.name;
}; };
var getResponseNameForRoute = function (route) { var getResponseNameForRoute = function (route) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment