mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 20:49:16 +02:00
* Avoid error by checking if content was already sent
This commit is contained in:
parent
0e77ef6ebf
commit
cdc6ff0a30
@ -400,6 +400,7 @@ begin
|
||||
AResponse.ContentLength:=AResponse.ContentStream.Size;
|
||||
R:=''; // Free up mem
|
||||
end;
|
||||
if not (AResponse.HeadersSent and AResponse.ContentSent) then
|
||||
AResponse.SendResponse;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user