Skip to content

Commit dc17796

Browse files
version 1.0.1
1 parent 7d4ae33 commit dc17796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/StabilityAI.API.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function TStabilityAIAPI.Post(const Path: string; Body: TJSONObject; Response: T
197197
Stream.Position := 0;
198198
Result := Client.Post(GetRequestURL(Path), Stream, Response, Headers).StatusCode;
199199
finally
200-
Client.OnReceiveData := nil;
200+
Client.ReceiveDataCallBack := nil;
201201
Stream.Free;
202202
end;
203203
finally
@@ -294,7 +294,7 @@ procedure TStabilityAIAPI.Post<TParams>(const Path: string; ParamProc: TProc<TPa
294294
end;
295295
end;
296296
finally
297-
Client.OnReceiveData := nil;
297+
Client.ReceiveDataCallBack := nil;
298298
Stream.Free;
299299
end;
300300
finally

0 commit comments

Comments
 (0)