mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +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
|
||||
SetLength(Result,Content.Size);
|
||||
if (Length(Result)>0) then
|
||||
begin
|
||||
Content.Position:=0;
|
||||
Content.ReadBuffer(Result[1],Length(Result));
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user