mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 02:49:28 +02:00
fcl-web: fixed av on logging TFPHTTPConnection.DoHandleRequest
This commit is contained in:
parent
8bb8e5716e
commit
c0f9878e2f
BIN
packages/fcl-web/examples/httpserver/simplehttpserver
Executable file
BIN
packages/fcl-web/examples/httpserver/simplehttpserver
Executable file
Binary file not shown.
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CONFIG>
|
||||
<Compiler Value="/usr/lib/fpc/3.3.1/ppcx64" Date="1680458816"/>
|
||||
<Params Value=" -MObjFPC -Scghi -Cg -O1 -g -gl -l -vewnhibq -Fu/home/mattias/pascal/fpc_sources/3.3.1/packages/fcl-web/examples/echo/webmodule -Fu/home/mattias/pascal/fpc_sources/3.3.1/packages/fcl-web/examples/httpserver/ -o/home/mattias/pascal/fpc_sources/3.3.1/packages/fcl-web/examples/httpserver/simplehttpserver simplehttpserver.pas"/>
|
||||
</CONFIG>
|
@ -7,6 +7,7 @@
|
||||
<SaveOnlyProjectUnits Value="True"/>
|
||||
<MainUnitHasCreateFormStatements Value="False"/>
|
||||
<MainUnitHasTitleStatement Value="False"/>
|
||||
<MainUnitHasScaledStatement Value="False"/>
|
||||
<CompatibilityMode Value="True"/>
|
||||
</Flags>
|
||||
<SessionStorage Value="InProjectDir"/>
|
||||
|
@ -11,8 +11,6 @@ uses
|
||||
|
||||
Type
|
||||
|
||||
{ TTestHTTPServer }
|
||||
|
||||
{ THTTPServer }
|
||||
|
||||
THTTPServer = Class(TTestHTTPServer)
|
||||
|
@ -1247,7 +1247,12 @@ begin
|
||||
if Assigned(Resp) and (not Resp.ContentSent) then
|
||||
Resp.SendContent;
|
||||
If Assigned(Server) and Server.CanLog(hlmRequestDone) then
|
||||
Server.DoLog(hlmRequestDone,SRequestDone,[Resp.ToString]);
|
||||
begin
|
||||
if Assigned(Resp) then
|
||||
Server.DoLog(hlmRequestDone,SRequestDone,[Resp.ToString])
|
||||
else
|
||||
Server.DoLog(hlmRequestDone,SRequestDone,['Response was freed']);
|
||||
end;
|
||||
Finally
|
||||
FreeAndNil(Resp);
|
||||
FreeAndNil(Req);
|
||||
|
Loading…
Reference in New Issue
Block a user