Skip to content

Commit

Permalink
Merge pull request #66 from nlegoff/fix-65
Browse files Browse the repository at this point in the history
Fix JSONP callback lowercase
  • Loading branch information
nlegoff committed Mar 23, 2014
2 parents 8d728ab + ce2fb3c commit 8d50977
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions lib/middleware.js
Expand Up @@ -34,16 +34,6 @@ module.exports = {
next();
};
},
lowercase: function(app) {
return function(req, res, next) {
for (var key in req.query) {
if (typeof req.query[key] === "string") {
req.query[key.toLowerCase()] = req.query[key].toLowerCase();
}
}
next();
};
},
formalizeSortParameter: function(app) {
return function(req, res, next) {
var sort = 'population';
Expand Down
3 changes: 0 additions & 3 deletions server.js
Expand Up @@ -59,9 +59,6 @@ app.use(middlewares.setRequestType(app));
// Set response appropriate content type
app.use(middlewares.setContentType(app));

// Lowercase query parameters
app.use(middlewares.lowercase(app));

// Formalize sort query parameter
app.use(middlewares.formalizeSortParameter(app));

Expand Down

0 comments on commit 8d50977

Please sign in to comment.