Skip to content

Commit 8dc6247

Browse files
committed
Fix: Correção temporária para av no DBWare
1 parent d25b9a0 commit 8dc6247

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/database/RALDBConnection.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ TRALDBConnection = class(TRALComponent)
2323
constructor Create(AOwner: TComponent); overload;
2424

2525
procedure ApplyUpdatesRemote(ACache: TRALDBSQLCache; AResp: TRALThreadClientResponse);
26-
procedure OpenRemote(AQuery: TDataset; AStorage : TRALStorageLink; AResp: TRALThreadClientResponse);
27-
procedure ExecSQLRemote(AQuery: TDataset; AStorage : TRALStorageLink; AResp: TRALThreadClientResponse);
26+
procedure OpenRemote(AQuery: TDataset; AStorage: TRALStorageLink; AResp: TRALThreadClientResponse);
27+
procedure ExecSQLRemote(AQuery: TDataset; AStorage: TRALStorageLink; AResp: TRALThreadClientResponse);
2828

2929
function InfoFieldsFromSQL(ASQL: StringRAL): TRALDBInfoFields;
3030
function GetTables: TRALDBInfoTables;
@@ -91,7 +91,7 @@ procedure TRALDBConnection.ApplyUpdatesRemote(ACache: TRALDBSQLCache; AResp: TRA
9191
end;
9292
end;
9393

94-
procedure TRALDBConnection.OpenRemote(AQuery: TDataset; AStorage : TRALStorageLink;
94+
procedure TRALDBConnection.OpenRemote(AQuery: TDataset; AStorage: TRALStorageLink;
9595
AResp: TRALThreadClientResponse);
9696
var
9797
vMem: TStream;

src/engine/fpHTTP/RALfpHTTPClient.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
unit RALfpHTTPClient;
1+
unit RALfpHTTPClient;
22

33
interface
44

@@ -145,6 +145,7 @@ procedure TRALfpHttpClientHTTP.SendUrl(AURL: StringRAL; ARequest: TRALRequest;
145145
AResponse.ContentDisposition := FHttp.ResponseHeaders.Values['Content-Disposition'];
146146
AResponse.StatusCode := FHttp.ResponseStatusCode;
147147
AResponse.ResponseStream := vResult;
148+
AResponse.Params.AddParam('Stream', AResponse.ParamByName('ral_body').AsStream, rpkBODY);
148149
except
149150
on e: ESocketError do
150151
begin

src/engine/indy/RALIndyClient.pas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ procedure TRALIndyClientHTTP.SendUrl(AURL: StringRAL; ARequest: TRALRequest;
8484
FHttp.ConnectTimeout := Parent.ConnectTimeout;
8585
FHttp.ReadTimeout := Parent.RequestTimeout;
8686
FHttp.Request.UserAgent := Parent.UserAgent;
87-
FHttp.RedirectMaximum := 30;
87+
FHttp.RedirectMaximum := 3;
8888
FHttp.HandleRedirects := true;
8989

9090
FHttp.IOHandler := nil;
@@ -166,7 +166,9 @@ procedure TRALIndyClientHTTP.SendUrl(AURL: StringRAL; ARequest: TRALRequest;
166166
AResponse.ContentType := FHttp.Response.ContentType;
167167
AResponse.ContentDisposition := FHttp.Response.ContentDisposition;
168168
AResponse.StatusCode := FHttp.ResponseCode;
169+
169170
AResponse.ResponseStream := vResult;
171+
AResponse.Params.AddParam('Stream', AResponse.ParamByName('ral_body').AsStream, rpkBODY);
170172
except
171173
on e: EIdSocketError do
172174
tratarExcecao(e.LastError, e.Message);

src/engine/netHTTP/RALnetHTTPClient.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ procedure TRALnetHTTPClientHTTP.SendUrl(AURL: StringRAL; ARequest: TRALRequest;
182182
AResponse.ContentType := vResponse.MimeType;
183183
AResponse.StatusCode := vResponse.GetStatusCode;
184184
AResponse.ResponseStream := vResponse.ContentStream;
185+
AResponse.Params.AddParam('Stream', AResponse.ParamByName('ral_body').AsStream, rpkBODY);
185186
end;
186187
except
187188
on e: ENetHTTPClientException do begin

0 commit comments

Comments
 (0)