mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 09:59:29 +02:00
*http client: rewind RequestBody in SendRequest
This commit is contained in:
parent
64ddf22e1b
commit
675312c201
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user