Skip to content

Commit

Permalink
datasets#50 - make sure /br and /BR both work
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesgassert committed Oct 9, 2013
1 parent 7cb1600 commit 94bb660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ exports.index = function(req, res) {
exports.jurisdiction = function(req, res) {
var bodies = [],
name,
jurisdiction = req.params.jurisdiction;
jurisdiction = req.params.jurisdiction.toUpperCase();

db.forEach(function(key, record) {
if (record.jurisdiction_code === jurisdiction) {
Expand All @@ -58,7 +58,7 @@ exports.jurisdiction = function(req, res) {
}
});
res.render('jurisdiction', {
code: jurisdiction.toUpperCase(),
code: jurisdiction,
name: name,
pageTitle: name,
bodies: bodies
Expand Down

0 comments on commit 94bb660

Please sign in to comment.