Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Aug 9, 2023
1 parent a44409f commit cb92cd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RESTRequest4D.Request.NetHTTP.pas
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@ function TRequestNetHTTP.ClearBody: IRequest;
function TRequestNetHTTP.ClearHeaders: IRequest;
{$IF COMPILERVERSION >= 34}
var
I: Integer;
LURLHeaders:TNetHeader;
{$ENDIF}
begin
Result := Self;
{$IF COMPILERVERSION >= 34}
for I := 0 to Pred(FNetHTTPClient.CustHeaders.Count) do
FNetHTTPClient.CustHeaders.Delete(I);
for LURLHeaders in FNetHTTPClient.CustHeaders do
FNetHTTPClient.CustHeaders.Delete(LURLHeaders.Name);
{$ELSE}
{TODO -oAll -cCustom Headers : Clear headers with NetHTTPClient in versions below of 10.4 Sydney}
{$ENDIF}
Expand Down

0 comments on commit cb92cd3

Please sign in to comment.