Avoid calling HELO service on malformed URLs. This is in response to an exception reported by danbanner.
parent
85d51e57a9
commit
c0fd09b445
|
@ -75,6 +75,12 @@ namespace OpenSim.Services.Connectors
|
|||
|
||||
public virtual string Helo()
|
||||
{
|
||||
if (String.IsNullOrEmpty(m_ServerURI))
|
||||
{
|
||||
m_log.WarnFormat("[HELO SERVICE]: Unable to invoke HELO due to malformed URL");
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI);
|
||||
// Eventually we need to switch to HEAD
|
||||
/* req.Method = "HEAD"; */
|
||||
|
|
Loading…
Reference in New Issue