Skip to content

Commit

Permalink
null and avoid newline
Browse files Browse the repository at this point in the history
  • Loading branch information
sabban committed Oct 2, 2024
1 parent b7b91c1 commit ea3ac2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/03live_and_ban.t
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ server {
if args.ip == "1.1.1.1" then
ngx.say('[{"duration":"1h00m00s","id":4091593,"origin":"CAPI","scenario":"crowdsecurity/vpatch-CVE-2024-4577","scope":"Ip","type":"ban","value":"1.1.1.1"}]')
else
ngx.say('[{}]')
ngx.print('null')
end
}
}
Expand Down
2 changes: 1 addition & 1 deletion t/04live_and_not_ban.t
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ server {
if args.ip == "1.1.1.1" then
ngx.say('[{"duration":"1h00m00s","id":4091593,"origin":"CAPI","scenario":"crowdsecurity/vpatch-CVE-2024-4577","scope":"Ip","type":"ban","value":"1.1.1.1"}]')
else
ngx.say('[{}]')
ngx.print('null')
end
}
}
Expand Down

0 comments on commit ea3ac2c

Please sign in to comment.