From bd6859137133325f8fe232aeff61f4e775da6a31 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Wed, 30 Jun 2010 06:35:22 -0700 Subject: [PATCH] Removed opportunity for exception in BaseHttpServer. (mantis #4825) --- OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index bc31815d8a..d261678159 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs @@ -283,6 +283,10 @@ namespace OpenSim.Server.Handlers.Simulation if (m_SimulationService == null) { m_log.Debug("[AGENT HANDLER]: Agent GET called. Harmless but useless."); + responsedata["content_type"] = "application/json"; + responsedata["int_response_code"] = HttpStatusCode.NotImplemented; + responsedata["str_response_string"] = string.Empty; + return; }