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