Skip to content

Commit c64bb3d

Browse files
committed
* Ajustes de servidor de testes Lazarus com modo debug
- correção de .lpi
1 parent e8d977a commit c64bb3d

5 files changed

Lines changed: 10 additions & 708 deletions

File tree

Lazarus/Console/RALTestServerConsoleLazarus.lpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
</Linking>
137137
<Other>
138138
<Verbosity>
139-
<ShoLineNum Value="True"/>
139+
<ShowLineNum Value="True"/>
140140
<ShowDebugInfo Value="True"/>
141141
</Verbosity>
142142
</Other>

Lazarus/Console/RALTestServerConsoleLazarus.lpr

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// engine components
1414
RALSynopseServer, RALIndyServer, RALfpHTTPServer, RALSaguiServer,
1515
// general base components
16-
RALServer, RALRequest, RALResponse, RALConsts;
16+
RALServer, RALRequest, RALResponse, RALConsts, RALMIMETypes, RALCompress;
1717

1818
type
1919

@@ -47,7 +47,7 @@ TRALApplication = class(TCustomApplication)
4747

4848
procedure TRALApplication.Ping(Request: TRALRequest; Response: TRALResponse);
4949
begin
50-
Response.Answer(200, 'pong');
50+
Response.Answer(HTTP_OK, 'pong', rctTEXTPLAIN);
5151
end;
5252

5353
constructor TRALApplication.Create(AOwner: TComponent);
@@ -59,6 +59,9 @@ TRALApplication = class(TCustomApplication)
5959
StopOnException := True;
6060

6161
WriteLn('RAL TestServer Lazarus - v' + RALVERSION);
62+
{$IFOPT D+}
63+
WriteLn('Debug Enabled');
64+
{$ENDIF}
6265
WriteLn('Choose the engine:');
6366
WriteLn('1 - Synopse mORMot2 ' + SYNOPSE_FRAMEWORK_VERSION);
6467
WriteLn('2 - Indy ' + gsIdVersion);
@@ -73,13 +76,17 @@ TRALApplication = class(TCustomApplication)
7376
4: begin
7477
FServer := TRALSaguiServer.Create(nil);
7578
TRALSaguiServer(FServer).LibPath := ExtractFilePath(ParamStr(0)) + SG_LIB_NAME;
79+
{$IFOPT D+}
80+
WriteLn(TRALSaguiServer(FServer).LibPath);
81+
{$ENDIF}
7682
end;
7783
end;
7884
WriteLn('Type the port used by server (0 for default 8000)');
7985
ReadLn(port);
8086
if port <= 0 then port := 8000;
8187
FServer.Port := port;
8288
FServer.CreateRoute('ping', @Ping);
89+
FServer.CompressType := ctNone;
8390
FServer.Start;
8491
end;
8592

Lazarus/Console/RALTestServerConsoleLazarus.lps

Lines changed: 0 additions & 175 deletions
This file was deleted.

Lazarus/Server/RALTestServerLazarus.lpi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<XPManifest>
1616
<DpiAware Value="True"/>
1717
</XPManifest>
18-
<Icon Value="0"/>
1918
</General>
2019
<BuildModes>
2120
<Item Name="Default" Default="True"/>

0 commit comments

Comments
 (0)