Ver código fonte

*http client: rewind RequestBody in SendRequest

Ondrej Pokorny 4 anos atrás
pai
commit
675312c201
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/fcl-web/src/base/fphttpclient.pp

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

@@ -747,7 +747,7 @@ begin
     if not Terminated then
       FSocket.WriteBuffer(S[1],Length(S));
     If Assigned(FRequestBody) and not Terminated then
-      FSocket.CopyFrom(FRequestBody,FRequestBody.Size);
+      FSocket.CopyFrom(FRequestBody,0);
   except
     on E: EWriteError do
       raise EHTTPClientStreamWrite.Create(SErrWritingSocket);