Add basic support ofr detached request handling to the HTTP server.
Groundwork to finish HTTP IN.trunk
parent
83a421a562
commit
07579fa402
|
@ -355,7 +355,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
{
|
{
|
||||||
//m_log.Debug("[BASE HTTP SERVER]: Found Stream Handler");
|
//m_log.Debug("[BASE HTTP SERVER]: Found Stream Handler");
|
||||||
// Okay, so this is bad, but should be considered temporary until everything is IStreamHandler.
|
// 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.
|
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();
|
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)
|
if (!response.SendChunked)
|
||||||
response.ContentLength64 = buffer.LongLength;
|
response.ContentLength64 = buffer.LongLength;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue