mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
Add FHTTP.Request.UserAgent when create FHTTP
This commit is contained in:
parent
365034a067
commit
b433abc9a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user