Incorrect redirect code
Original Reporter info from Mantis: Maris-S
-
Reporter name:
Original Reporter info from Mantis: Maris-S
- Reporter name:
Description:
Component: fcl-web
File: src/base/fphttpclient.pp
class function TFPCustomHTTPClient.IsRedirect(ACode: Integer): Boolean;
begin
Case ACode of
301,
302,
303,
307,808 : Result:=True;
else
Result:=False;
end;
end;
Wiki list with status codes:
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
Incorrect set of redirect codes. 808 should be changed to 308.
Mantis conversion info:
- Mantis ID: 35532
- Version: 2.0.2
- Fixed in version: 3.3.1
- Fixed in revision: 42012 (#34830ab1)
- Target version: 3.2.0