mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 16:09:25 +02:00
* Make sure position = 0 when doing getcontentasstring
git-svn-id: trunk@30843 -
This commit is contained in:
parent
0effe938bd
commit
5d457bb965
@ -337,7 +337,10 @@ Function TRequestResponse.GetContentAsString: String;
|
|||||||
begin
|
begin
|
||||||
SetLength(Result,Content.Size);
|
SetLength(Result,Content.Size);
|
||||||
if (Length(Result)>0) then
|
if (Length(Result)>0) then
|
||||||
|
begin
|
||||||
|
Content.Position:=0;
|
||||||
Content.ReadBuffer(Result[1],Length(Result));
|
Content.ReadBuffer(Result[1],Length(Result));
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user