From 07579fa402e46873aed8b59a71644dbe25ccc8bc Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 29 Jul 2009 23:13:08 +0000 Subject: Add basic support ofr detached request handling to the HTTP server. Groundwork to finish HTTP IN. --- OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index f7a2044..d268457 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs @@ -355,7 +355,7 @@ namespace OpenSim.Framework.Servers.HttpServer { //m_log.Debug("[BASE HTTP SERVER]: Found Stream Handler"); // Okay, so this is bad, but should be considered temporary until everything is IStreamHandler. - byte[] buffer; + byte[] buffer = null; response.ContentType = requestHandler.ContentType; // Lets do this defaulting before in case handler has varying content type. @@ -428,6 +428,12 @@ namespace OpenSim.Framework.Servers.HttpServer request.InputStream.Close(); + // HTTP IN support. The script engine taes it from here + // Nothing to worry about for us. + // + if (buffer == null) + return; + if (!response.SendChunked) response.ContentLength64 = buffer.LongLength; -- cgit v1.1