Skip to content

Commit

Permalink
#284 s/[]/""/
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Cavage committed Jan 30, 2013
1 parent db6982f commit 257bc31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/router.js
Expand Up @@ -383,7 +383,8 @@ Router.prototype.find = function find(req, res, callback) {
}
// Last, check request-headers
var ok = true;
(headers || []).forEach(function (h) {
/* JSSTYLED */
(headers || '').split(/\s*,\s*/).forEach(function (h) {
h = h.toLowerCase();
ok = ALLOW_HEADERS.indexOf(h) !== -1 && ok;
});
Expand Down

0 comments on commit 257bc31

Please sign in to comment.