Skip to content

Commit

Permalink
Merge pull request #4 from ottobackwards/fix-capture
Browse files Browse the repository at this point in the history
in zeek 6.0 there is an error without the explict capture
  • Loading branch information
pgaulon authored Jul 14, 2023
2 parents 91c729a + a553359 commit b635549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notice_slack.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function slack_send_notice(webhook: string, payload: Notice::Slack_message)
$client_data=to_json(payload)
);

when ( local result = ActiveHTTP::request(request) )
when [request] ( local result = ActiveHTTP::request(request) )
{
if ( result$code != 200 )
Reporter::warning(fmt("Slack notice received an error status code: %d", result$code));
Expand Down

0 comments on commit b635549

Please sign in to comment.