Skip to content

Commit fc35c58

Browse files
committed
Fixes for PR #185
1 parent fb751d7 commit fc35c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server/parse-http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function parseHttpRequest (req, opts) {
2525
if (!params.port) throw new Error('invalid port')
2626

2727
params.left = Number(params.left)
28-
if (isNaN(params.left)) params.left = Infinity
28+
if (Number.isNaN(params.left)) params.left = Infinity
2929

3030
params.compact = Number(params.compact) || 0
3131
params.numwant = Math.min(

0 commit comments

Comments
 (0)