mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:39:31 +02:00
* Reset request stream position in case of a Location and 302 status retry. (bug ID 32410)
git-svn-id: trunk@37269 -
This commit is contained in:
parent
aabc5dc217
commit
06563f73f6
@ -1391,7 +1391,11 @@ begin
|
||||
FOnPassword(Self,RR);
|
||||
end
|
||||
else
|
||||
begin
|
||||
RR:=AllowRedirect and IsRedirect(FResponseStatusCode) and (L<>'');
|
||||
if RR and Assigned(FRequestBody) and (FRequestBody.Size>0) then
|
||||
FRequestBody.Position:=0;
|
||||
end;
|
||||
until Terminated or not RR ;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user