Skip to content

Commit

Permalink
Fixing global leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Apr 30, 2012
1 parent e07418f commit 6cfaec2
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) { function parseMediaType(s) {
match = s.match(/\s*(\S+)\/([^;\s]+)\s*(?:;(.*))?/); var match = s.match(/\s*(\S+)\/([^;\s]+)\s*(?:;(.*))?/);
if (!match) return null; if (!match) return null;


var type = match[1], var type = match[1],
Expand Down

0 comments on commit 6cfaec2

Please sign in to comment.