Revert "making emwebfinger not try ssl first, for now"

This reverts commit cc2766a0ea.
This commit is contained in:
maxwell 2010-11-02 17:36:58 -07:00
parent a79d1f5240
commit 0db30bb221

View file

@ -6,7 +6,7 @@ class EMWebfinger
def initialize(account) def initialize(account)
@account = account.strip.gsub('acct:','').to_s @account = account.strip.gsub('acct:','').to_s
@callbacks = [] @callbacks = []
@ssl = false @ssl = true
# Raise an error if identifier has a port number # Raise an error if identifier has a port number
raise "Identifier is invalid" if(@account.strip.match(/\:\d+$/)) raise "Identifier is invalid" if(@account.strip.match(/\:\d+$/))
# Raise an error if identifier is not a valid email (generous regexp) # Raise an error if identifier is not a valid email (generous regexp)
@ -43,9 +43,7 @@ class EMWebfinger
end end
} }
http.errback { http.errback { process_callbacks "there was an error getting the xrd from account#{@account}" }
process_callbacks "there was an error getting the xrd from account#{@account}" }
end end