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.
This commit is contained in:
Dr Scofield
2008-08-15 07:09:48 +00:00
parent 60acc370fc
commit e6e01cee17

View File

@@ -222,7 +222,8 @@ namespace OpenSim.Framework.Servers
request.InputStream.Close();
if (!response.IsContentTypeSet) response.ContentType = requestHandler.ContentType;
response.ContentLength64 = buffer.LongLength;
if (!response.SendChunked)
response.ContentLength64 = buffer.LongLength;
try
{