File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
9292end ;
9393
94- procedure TRALDBConnection.OpenRemote (AQuery: TDataset; AStorage : TRALStorageLink;
94+ procedure TRALDBConnection.OpenRemote (AQuery: TDataset; AStorage: TRALStorageLink;
9595 AResp: TRALThreadClientResponse);
9696var
9797 vMem: TStream;
Original file line number Diff line number Diff line change 1- unit RALfpHTTPClient;
1+ unit RALfpHTTPClient;
22
33interface
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
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments