Browse Source

* Use correct offset for streaming content. Fix issue #40664

Michaël Van Canneyt 3 days ago
parent
commit
de689cccfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-web/src/base/httpdefs.pp

+ 1 - 1
packages/fcl-web/src/base/httpdefs.pp

@@ -2773,7 +2773,7 @@ begin
   if Length(FStreamingContent) < FStreamingContentRead then
   if Length(FStreamingContent) < FStreamingContentRead then
     SetLength(FStreamingContent, FStreamingContentRead);
     SetLength(FStreamingContent, FStreamingContentRead);
   if Size > 0 then
   if Size > 0 then
-    Move(Buf, FStreamingContent[CL+1], Size);
+    Move(Buf, FStreamingContent[CL], Size);
   if State=cssEnd then
   if State=cssEnd then
     begin
     begin
     SetLength(FStreamingContent, FStreamingContentRead);
     SetLength(FStreamingContent, FStreamingContentRead);