From 0db30bb2211b1848eb88915865fd389f365e8825 Mon Sep 17 00:00:00 2001 From: maxwell Date: Tue, 2 Nov 2010 17:36:58 -0700 Subject: [PATCH] Revert "making emwebfinger not try ssl first, for now" This reverts commit cc2766a0ea9727f6bacc5d161a42fd3491ee0481. --- lib/em-webfinger.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/em-webfinger.rb b/lib/em-webfinger.rb index 102760156..97b31184c 100644 --- a/lib/em-webfinger.rb +++ b/lib/em-webfinger.rb @@ -6,7 +6,7 @@ class EMWebfinger def initialize(account) @account = account.strip.gsub('acct:','').to_s @callbacks = [] - @ssl = false + @ssl = true # Raise an error if identifier has a port number raise "Identifier is invalid" if(@account.strip.match(/\:\d+$/)) # Raise an error if identifier is not a valid email (generous regexp) @@ -43,9 +43,7 @@ class EMWebfinger end } - http.errback { - - process_callbacks "there was an error getting the xrd from account#{@account}" } + http.errback { process_callbacks "there was an error getting the xrd from account#{@account}" } end