BaseHttpServer: if the handler sets the content length, don't override it. This happens in HEAD handlers.
parent
c66a9a08e4
commit
b2d4b8b1da
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue