Merge branch 'fixonlinepackagemanager302error' into 'main'

Fixed packages download from online package manager return 302 error

See merge request freepascal.org/lazarus/lazarus!85
This commit is contained in:
Balázs Székely 2022-04-01 09:38:41 +00:00
commit fed01f0513

View File

@ -487,6 +487,7 @@ begin
FreeOnTerminate := True;
FMS := TMemoryStream.Create;
FHTTPClient := TFPHTTPClient.Create(nil);
FHTTPClient.AllowRedirect := True;
if Options.ProxyEnabled then
begin
FHTTPClient.Proxy.Host:= Options.ProxyServer;