aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDr Scofield2008-08-15 07:09:48 +0000
committerDr Scofield2008-08-15 07:09:48 +0000
commite6e01cee17d6ede8598b6565d017ab1019942267 (patch)
tree5a1ce81086854c916525496fb7c6b8bf9410b48d
parentThanks, krtaylor, for a patch that fixes llListSort() and llListRandomize() f... (diff)
downloadopensim-SC-e6e01cee17d6ede8598b6565d017ab1019942267.zip
opensim-SC-e6e01cee17d6ede8598b6565d017ab1019942267.tar.gz
opensim-SC-e6e01cee17d6ede8598b6565d017ab1019942267.tar.bz2
opensim-SC-e6e01cee17d6ede8598b6565d017ab1019942267.tar.xz
From: Richard Alimi <ralimi@us.ibm.com>
The following is a patch that disables the addition of the Content-Length HTTP response header when a chunked response is being sent.
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index eba49e4..952fb31 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -222,7 +222,8 @@ namespace OpenSim.Framework.Servers
222 222
223 request.InputStream.Close(); 223 request.InputStream.Close();
224 if (!response.IsContentTypeSet) response.ContentType = requestHandler.ContentType; 224 if (!response.IsContentTypeSet) response.ContentType = requestHandler.ContentType;
225 response.ContentLength64 = buffer.LongLength; 225 if (!response.SendChunked)
226 response.ContentLength64 = buffer.LongLength;
226 227
227 try 228 try
228 { 229 {