* Avoid error by checking if content was already sent

This commit is contained in:
Michaël Van Canneyt 2023-01-28 16:23:39 +01:00
parent 0e77ef6ebf
commit cdc6ff0a30

View File

@ -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 }