diff --git a/lib/mediaType.js b/lib/mediaType.js index cbe3b88..766bb11 100644 --- a/lib/mediaType.js +++ b/lib/mediaType.js @@ -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],