mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 14:39:06 +02:00
Fixed the problem that some packages download from online package manager return status code:302 error
This commit is contained in:
parent
ae6d20b6a4
commit
cbfd897b89
@ -487,6 +487,7 @@ begin
|
|||||||
FreeOnTerminate := True;
|
FreeOnTerminate := True;
|
||||||
FMS := TMemoryStream.Create;
|
FMS := TMemoryStream.Create;
|
||||||
FHTTPClient := TFPHTTPClient.Create(nil);
|
FHTTPClient := TFPHTTPClient.Create(nil);
|
||||||
|
FHTTPClient.AllowRedirect := True;
|
||||||
if Options.ProxyEnabled then
|
if Options.ProxyEnabled then
|
||||||
begin
|
begin
|
||||||
FHTTPClient.Proxy.Host:= Options.ProxyServer;
|
FHTTPClient.Proxy.Host:= Options.ProxyServer;
|
||||||
|
Loading…
Reference in New Issue
Block a user