mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
Avoid calling HELO service on malformed URLs. This is in response to an exception reported by danbanner.
This commit is contained in:
@@ -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"; */
|
||||
|
||||
Reference in New Issue
Block a user