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.
0.6.0-stable
Dr Scofield 2008-08-15 07:09:48 +00:00
parent 60acc370fc
commit e6e01cee17
1 changed files with 2 additions and 1 deletions

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
{