aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 40b8c5c..6863e0e 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -688,7 +688,7 @@ namespace OpenSim.Framework.Servers.HttpServer
688 688
689 if (buffer != null) 689 if (buffer != null)
690 { 690 {
691 if (!response.SendChunked) 691 if (!response.SendChunked && response.ContentLength64 <= 0)
692 response.ContentLength64 = buffer.LongLength; 692 response.ContentLength64 = buffer.LongLength;
693 693
694 response.OutputStream.Write(buffer, 0, buffer.Length); 694 response.OutputStream.Write(buffer, 0, buffer.Length);