making emwebfinger not try ssl first, for now
This commit is contained in:
parent
ccd92fb850
commit
cc2766a0ea
1 changed files with 4 additions and 2 deletions
|
|
@ -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 = true
|
@ssl = false
|
||||||
# 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,7 +43,9 @@ class EMWebfinger
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue