From 27ae1481678fadadc257f11bc7c2125a5a603962 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 2 Feb 2017 17:23:46 -0800 Subject: [PATCH] Fixes for PR #185 --- lib/server/parse-http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/parse-http.js b/lib/server/parse-http.js index 24c3c69..bf6cb2c 100644 --- a/lib/server/parse-http.js +++ b/lib/server/parse-http.js @@ -25,7 +25,7 @@ function parseHttpRequest (req, opts) { if (!params.port) throw new Error('invalid port') params.left = Number(params.left) - if (isNaN(params.left)) params.left = Infinity + if (Number.isNaN(params.left)) params.left = Infinity params.compact = Number(params.compact) || 0 params.numwant = Math.min(