mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 21:33:17 +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);
|
FOnPassword(Self,RR);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
begin
|
||||||
RR:=AllowRedirect and IsRedirect(FResponseStatusCode) and (L<>'');
|
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 ;
|
until Terminated or not RR ;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user