mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Don't allow a failure in create a request in HeloService.Connector.Helo() to propogate up the stack.
Relates to http://opensimulator.org/mantis/view.php?id=7421
This commit is contained in:
@@ -84,16 +84,16 @@ namespace OpenSim.Services.Connectors
|
||||
{
|
||||
if (String.IsNullOrEmpty(m_ServerURI))
|
||||
{
|
||||
m_log.WarnFormat("[HELO SERVICE]: Unable to invoke HELO due to malformed URL");
|
||||
m_log.WarnFormat("[HELO SERVICE]: Unable to invoke HELO due to empty URL");
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI);
|
||||
// Eventually we need to switch to HEAD
|
||||
/* req.Method = "HEAD"; */
|
||||
|
||||
try
|
||||
{
|
||||
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI);
|
||||
// Eventually we need to switch to HEAD
|
||||
/* req.Method = "HEAD"; */
|
||||
|
||||
using (WebResponse response = req.GetResponse())
|
||||
{
|
||||
if (response.Headers.Get("X-Handlers-Provided") == null) // just in case this ever returns a null
|
||||
|
||||
Reference in New Issue
Block a user