BaseHttpServer: if the handler sets the content length, don't override it. This happens in HEAD handlers.

cpu-performance
Diva Canto 2013-07-08 14:12:11 -07:00
parent c66a9a08e4
commit b2d4b8b1da
1 changed files with 1 additions and 1 deletions

View File

@ -688,7 +688,7 @@ namespace OpenSim.Framework.Servers.HttpServer
if (buffer != null)
{
if (!response.SendChunked)
if (!response.SendChunked && response.ContentLength64 <= 0)
response.ContentLength64 = buffer.LongLength;
response.OutputStream.Write(buffer, 0, buffer.Length);