From b6264e60d39b12d03e3d5e57eb07fa7a5d1a2852 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Wed, 30 Jun 2010 06:35:22 -0700 Subject: Removed opportunity for exception in BaseHttpServer. (mantis #4825) --- OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Server') diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index bc31815..d261678 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; } -- cgit v1.1