Browse Source

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

git-svn-id: trunk@17763 -
michael 14 years ago
parent
commit
b8f18854ca
1 changed files with 1 additions and 0 deletions
  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]);