Add FHTTP.Request.UserAgent when create FHTTP

This commit is contained in:
Pedro 2019-05-15 11:25:22 -03:00
parent 365034a067
commit b433abc9a3

View File

@ -747,6 +747,7 @@ begin
FHTTP.HandleRedirects := False; // DT 2016/09/16
FHTTP.OnRedirect := OnHTTPRedirect; // DT 2016/09/16
FHTTP.ReadTimeOut := 20000;
FHTTP.Request.UserAgent := 'Mozilla/3.0 (compatible; IndyLibrary)'; // Resolve 403 Forbidden error in REST API SSL
if (AIOHandler <> nil) then
FHTTP.IOHandler := AIOHandler