mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
BaseHttpServer: if the handler sets the content length, don't override it. This happens in HEAD handlers.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user