* Make sure position = 0 when doing getcontentasstring

git-svn-id: trunk@30843 -
This commit is contained in:
michael 2015-05-11 21:13:36 +00:00
parent 0effe938bd
commit 5d457bb965

View File

@ -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.