mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 14:39:24 +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
|
else
|
||||||
begin
|
begin
|
||||||
RetryCount:=0; // We got data, so let's reset this.
|
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;
|
end;
|
||||||
BytesRead:=BytesRead+a;
|
BytesRead:=BytesRead+a;
|
||||||
until (BytesRead>=Cl) or (AbortRead);
|
until (BytesRead>=Cl) or (AbortRead);
|
||||||
@ -376,7 +376,7 @@ end;
|
|||||||
|
|
||||||
function TCGIRequest.DoContentRead(B: PByte; Len: Integer): Boolean;
|
function TCGIRequest.DoContentRead(B: PByte; Len: Integer): Boolean;
|
||||||
begin
|
begin
|
||||||
Result:=False;
|
Result:=True;
|
||||||
if Assigned(FOnContentRead) then
|
if Assigned(FOnContentRead) then
|
||||||
FOnContentRead(Self,B,Len,Result);
|
FOnContentRead(Self,B,Len,Result);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user