Permalink
Browse files

Merge pull request #101 from GCheung55/patch-1

Update to make sure hostName exists before trying to act on it
  • Loading branch information...
ciaranj committed Jul 28, 2012
2 parents b103b70 + 409405f commit 3a15f03c3418f1462c51b9fb187a7b481630383f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/_utils.js
View
@@ -1,4 +1,4 @@
// Returns true if this is a host that closes *before* it ends?!?!
module.exports.isAnEarlyCloseHost= function( hostName ) {
- return hostName.match(".*google(apis)?.com$")
+ return hostName && hostName.match(".*google(apis)?.com$")
}

0 comments on commit 3a15f03

Please sign in to comment.