Add basic support ofr detached request handling to the HTTP server.

Groundwork to finish HTTP IN.
trunk
Melanie Thielker 2009-07-29 23:13:08 +00:00
parent 83a421a562
commit 07579fa402
1 changed files with 7 additions and 1 deletions

View File

@ -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;