aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseHttpServer.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index fc2d36a..121b8a8 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -303,6 +303,9 @@ namespace OpenSim.Framework.Servers
303 //m_log.Debug("[BASE HTTP SERVER]: Found Stream Handler"); 303 //m_log.Debug("[BASE HTTP SERVER]: Found Stream Handler");
304 // Okay, so this is bad, but should be considered temporary until everything is IStreamHandler. 304 // Okay, so this is bad, but should be considered temporary until everything is IStreamHandler.
305 byte[] buffer; 305 byte[] buffer;
306
307 response.ContentType = requestHandler.ContentType; // Lets do this defaulting before in case handler has varying content type.
308
306 if (requestHandler is IStreamedRequestHandler) 309 if (requestHandler is IStreamedRequestHandler)
307 { 310 {
308 IStreamedRequestHandler streamedRequestHandler = requestHandler as IStreamedRequestHandler; 311 IStreamedRequestHandler streamedRequestHandler = requestHandler as IStreamedRequestHandler;
@@ -371,7 +374,7 @@ namespace OpenSim.Framework.Servers
371 } 374 }
372 375
373 request.InputStream.Close(); 376 request.InputStream.Close();
374 response.ContentType = requestHandler.ContentType; 377
375 if (!response.SendChunked) 378 if (!response.SendChunked)
376 response.ContentLength64 = buffer.LongLength; 379 response.ContentLength64 = buffer.LongLength;
377 380
@@ -1620,4 +1623,4 @@ namespace OpenSim.Framework.Servers
1620 return; 1623 return;
1621 } 1624 }
1622 } 1625 }
1623} \ No newline at end of file 1626}