Permalink
Browse files

Merge pull request #3 from domenic/patch-1

Fixing global leak.
  • Loading branch information...
2 parents e07418f + 6cfaec2 commit 697dbb50a55608339ed1f725bdc696a3edf188e7 @federomero federomero committed Apr 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mediaType.js
View
@@ -10,7 +10,7 @@ function parseAccept(accept) {
};
function parseMediaType(s) {
- match = s.match(/\s*(\S+)\/([^;\s]+)\s*(?:;(.*))?/);
+ var match = s.match(/\s*(\S+)\/([^;\s]+)\s*(?:;(.*))?/);
if (!match) return null;
var type = match[1],

0 comments on commit 697dbb5

Please sign in to comment.