mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user