Skip to content

Commit a8ac7c3

Browse files
committed
fix:
- ajuste de identação de algumas units. - Ajuste em MIMETypes para usar a função interna do RAL com todos os tipos definidos no IANA pra corrigir erro no tráfego de arquivos web em alguns sistemas operacionais que não preenchiam corretamente todos os MIMETypes. feat: - Criação de função StreamToByteString para evitar if no StreamToString, otimizando o processo. chore: - Atualização de submodulo pascal_brotli.
1 parent 1dc03bf commit a8ac7c3

12 files changed

Lines changed: 44 additions & 32 deletions

File tree

pkg/Delphi/Database/RALDBPackage.dpk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ contains
3838
RALDBModule in '..\..\..\src\database\RALDBModule.pas',
3939
RALDBSQLCache in '..\..\..\src\database\RALDBSQLCache.pas',
4040
RALDBConnection in '..\..\..\src\database\RALDBConnection.pas',
41-
RALDBRegister in '..\..\..\src\database\RALDBRegister.pas';
41+
RALDBRegister in '..\..\..\src\database\RALDBRegister.pas',
42+
RALDBConnectionPooler in '..\..\..\src\database\RALDBConnectionPooler.pas';
4243

4344
end.

pkg/Delphi/Database/RALDBPackage.dproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
<DCCReference Include="..\..\..\src\database\RALDBSQLCache.pas"/>
181181
<DCCReference Include="..\..\..\src\database\RALDBConnection.pas"/>
182182
<DCCReference Include="..\..\..\src\database\RALDBRegister.pas"/>
183+
<DCCReference Include="..\..\..\src\database\RALDBConnectionPooler.pas"/>
183184
<BuildConfiguration Include="Base">
184185
<Key>Base</Key>
185186
</BuildConfiguration>

pkg/Delphi/Engine/UniGUIRAL.dpk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ package UniGUIRAL;
2626
{$IMAGEBASE $400000}
2727
{$DEFINE DEBUG}
2828
{$ENDIF IMPLICITBUILDING}
29+
{$DESCRIPTION 'PascalRAL | UniGUI Components'}
2930
{$IMPLICITBUILD ON}
3031

3132
requires

pkg/Delphi/Engine/UniGUIRAL.dproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@
239239
<Overwrite>true</Overwrite>
240240
</Platform>
241241
</DeployFile>
242+
<DeployFile LocalName="..\..\..\..\..\..\..\..\Public\Documents\Embarcadero\Studio\23.0\Bpl\UniGUIRAL.bpl" Configuration="Debug" Class="ProjectOutput">
243+
<Platform Name="Win32">
244+
<RemoteName>UniGUIRAL.bpl</RemoteName>
245+
<Overwrite>true</Overwrite>
246+
</Platform>
247+
</DeployFile>
242248
<DeployFile LocalName="..\..\..\..\..\..\..\Public\Documents\Embarcadero\Studio\23.0\Bpl\UniGUIRAL.bpl" Configuration="Debug" Class="ProjectOutput"/>
243249
<DeployFile LocalName="C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl\UniGUIRAL.bpl" Configuration="Debug" Class="ProjectOutput"/>
244250
<DeployClass Name="AdditionalDebugSymbols">

src/base/RALAuthentication.pas

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,13 @@ TRALClientJWTAuth = class(TRALAuthClient)
126126
property OnBeforeGetToken;
127127
end;
128128

129-
/// JWT Authenticator for server components
130-
131129
{ TRALServerJWTAuth }
132130

131+
/// JWT Authenticator for server components
133132
TRALServerJWTAuth = class(TRALAuthServer)
134133
private
135134
FAlgorithm: TRALJWTAlgorithm;
136-
FCollectionAuth : TOwnedCollection;
135+
FCollectionAuth: TOwnedCollection;
137136
FAuthToken: TRALBaseRoute;
138137
FExpSecs: IntegerRAL;
139138
FJSONKey: StringRAL;
@@ -142,7 +141,7 @@ TRALServerJWTAuth = class(TRALAuthServer)
142141
FOnValidate: TRALOnTokenJWT;
143142
protected
144143
function GetAuthRoute: TRALBaseRoute; override;
145-
procedure SetAuthRoute(ARoute : TRALBaseRoute); override;
144+
procedure SetAuthRoute(ARoute: TRALBaseRoute); override;
146145
public
147146
constructor Create(AOwner: TComponent); override;
148147
destructor Destroy; override;

src/base/RALClient.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ procedure GetEngineList(AList: TStrings);
253253

254254
procedure TRALClient.SetEngineType(AValue: String);
255255
var
256-
vClass : TRALClientHTTPClass;
256+
vClass: TRALClientHTTPClass;
257257
begin
258258
if FEngineType = AValue then
259259
Exit;

src/base/RALRequest.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ TRALAuthorization = class(TPersistent)
5050
property AuthString: StringRAL read FAuthString write SetAuthString;
5151
property AuthType: TRALAuthTypes read FAuthType write FAuthType;
5252

53-
property AsAuthBasic : TRALAuthBasic read GetAuthBasic;
54-
property AsAuthBearer : TRALJWT read GetAuthBearer;
53+
property AsAuthBasic: TRALAuthBasic read GetAuthBasic;
54+
property AsAuthBearer: TRALJWT read GetAuthBearer;
5555
end;
5656

5757
{ TRALRequest }

src/engine/fpHTTP/RALfpHTTPClient.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface
1313

1414
TRALfpHttpClientHTTP = class(TRALClientHTTP)
1515
private
16-
FHttp : TFPHTTPClient;
16+
FHttp: TFPHTTPClient;
1717
protected
1818
procedure OnGetSSLHandler(Sender : TObject; Const UseSSL : Boolean; Out AHandler : TSocketHandler);
1919
public

src/others/pascal_brotli

src/utils/RALCripto.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function TRALCripto.Encrypt(AValue: TStream): StringRAL;
129129
vStream := BeforeEncrypt(AValue);
130130
vStream.Position := 0;
131131

132-
Result := StreamToString(vStream, True);
132+
Result := StreamToByteString(vStream);
133133
finally
134134
FreeAndNil(vStream);
135135
end;

0 commit comments

Comments
 (0)