From 6a2e4f829531c81eff26d1324436944573504cb9 Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Tue, 31 Jan 2012 10:42:55 -0700
Subject: [PATCH] http_proxy is optional configuration, handle if it doesn't
 exist

---
 lib/primary.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/primary.js b/lib/primary.js
index 6a0959bba..85fd504d4 100644
--- a/lib/primary.js
+++ b/lib/primary.js
@@ -110,8 +110,9 @@ exports.checkSupport = function(domain, cb) {
     });
   };
 
-  // now we need to check to see if domain purports to being a primary for browserid
-  var httpProxy = config.get('http_proxy');
+  // now we need to check to see if domain purports to being a primary
+  // for browserid
+  var httpProxy = config.has('http_proxy') ? config.get('http_proxy') : null;
 
   var req;
   if (httpProxy && httpProxy.port && httpProxy.host) {
-- 
GitLab