Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mclmax committed Oct 8, 2024
1 parent d2a1a74 commit 6bd6af2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion canarytokens/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ def _parse_slack_api_trigger(request):
def _parse_credit_card_v2_trigger(
request: Request,
) -> CreditCardV2TokenHit:
trigger_data = CreditCardTrigger(**json.loads(request.content.read()))
data = {k.decode(): [o.decode() for o in v][0] for k, v in request.args.items()}
trigger_data = CreditCardTrigger(**data)

hit_time = datetime.utcnow().strftime("%s.%f")
hit_info = {
Expand Down

0 comments on commit 6bd6af2

Please sign in to comment.