diff --git a/src/utils.js b/src/utils.js
index <HASH>..<HASH> 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -23,8 +23,8 @@ exports.serverFromURL = function(url) {
   parts.host = parts.host.split(':');
 
   sagRes = exports.server(
-      parts.host.shift(), 
-      parts.host.shift() || (useSSL) ? 443 : 80,
+      parts.host[0],
+      parts.host[1] || ((useSSL) ? 443 : 80),
       useSSL);
 
   //log the user in (if provided)
Fixing ternary in c5a<I>f0ba0dc<I>cf<I>cd<I>bd4dd<I>ed3b (#<I>)