Skip to content

Commit

Permalink
Merge pull request #3 from domenic/patch-1
Browse files Browse the repository at this point in the history
Fixing global leak.
  • Loading branch information
federomero committed Apr 30, 2012
2 parents e07418f + 6cfaec2 commit 697dbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mediaType.js
Expand Up @@ -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],
Expand Down

0 comments on commit 697dbb5

Please sign in to comment.