Skip to content

Commit

Permalink
Update Horse.ServerStatic.pas
Browse files Browse the repository at this point in the history
It is not necessary to release the LFileStream variable, Horse itself already releases it from memory. Corrected by Herbert from 99 coders
  • Loading branch information
cachopaweb authored Sep 24, 2024
1 parent 9fb83e9 commit 3106814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Horse.ServerStatic.pas
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ procedure Middleware(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED
Res.RawWebResponse.SendResponse;
raise EHorseCallbackInterrupted.Create;
finally
LFileStream.Free;
//LFileStream.Free; //Corrected by Herbert from 99 coders
end;
end;

Next;
end;

end.
end.

0 comments on commit 3106814

Please # to comment.