Parcourir la source

* Fixed bug where multiple methods were run one after the other

git-svn-id: trunk@17763 -
michael il y a 14 ans
Parent
commit
b8f18854ca
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      packages/fcl-web/src/base/fphttpclient.pp

+ 1 - 0
packages/fcl-web/src/base/fphttpclient.pp

@@ -570,6 +570,7 @@ Var
   ResponseOK : Boolean;
 
 begin
+  SetLength(FBuffer,0);
   FResponseStatusCode:=ReadResponseHeaders;
   if not CheckResponseCode(FResponseStatusCode,AllowedResponseCodes) then
     Raise EHTTPClient.CreateFmt(SErrUnexpectedResponse,[ResponseStatusCode]);