Skip to content

Commit

Permalink
⛏ Add IsSuccess check for send hook
Browse files Browse the repository at this point in the history
  • Loading branch information
furkandeveloper committed Aug 5, 2021
1 parent fd4cebc commit a3440e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/IronHook.Core/Concrete/HttpHookOperator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ await ironHookContext.InsertAsync<HookLog>(new HookLog
ResponseDate = responseDate,
});

if (!isExceeded)
if (response.IsSuccessStatusCode)
return responses;

else if (!isExceeded)
goto Loop;
}
}
Expand Down

0 comments on commit a3440e1

Please sign in to comment.