Avoid calling HELO service on malformed URLs. This is in response to an exception reported by danbanner.

0.8.0.3
Diva Canto 2014-04-07 19:41:25 -07:00
parent 85d51e57a9
commit c0fd09b445
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ namespace OpenSim.Services.Connectors
public virtual string Helo() 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); HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI);
// Eventually we need to switch to HEAD // Eventually we need to switch to HEAD
/* req.Method = "HEAD"; */ /* req.Method = "HEAD"; */