mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
* Parameter inverted for abortread in content read
git-svn-id: trunk@27494 -
This commit is contained in:
parent
12e9772111
commit
89092232b9
@ -354,7 +354,7 @@ begin
|
||||
else
|
||||
begin
|
||||
RetryCount:=0; // We got data, so let's reset this.
|
||||
AbortRead:=DoContentRead(PByte(@S[BytesRead+1]),A);
|
||||
AbortRead:=Not DoContentRead(PByte(@S[BytesRead+1]),A);
|
||||
end;
|
||||
BytesRead:=BytesRead+a;
|
||||
until (BytesRead>=Cl) or (AbortRead);
|
||||
@ -376,7 +376,7 @@ end;
|
||||
|
||||
function TCGIRequest.DoContentRead(B: PByte; Len: Integer): Boolean;
|
||||
begin
|
||||
Result:=False;
|
||||
Result:=True;
|
||||
if Assigned(FOnContentRead) then
|
||||
FOnContentRead(Self,B,Len,Result);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user