Explorar el Código

*http client: rewind RequestBody in SendRequest

Ondrej Pokorny hace 4 años
padre
commit
675312c201
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);