Skip to content

Commit

Permalink
Additional change for undoing match
Browse files Browse the repository at this point in the history
  • Loading branch information
wleightond committed Nov 6, 2024
1 parent b021d2e commit ef6f9a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions canarytokens/channel_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,11 @@ def render_POST(self, request: Request): # noqa: C901
canarydrop.add_canarydrop_hit(token_hit=token_hit)
self.dispatch(canarydrop=canarydrop, token_hit=token_hit)
return b"success"
elif (
canarydrop.type
== TokenTypes.SLOW_REDIRECT | TokenTypes.WEB_IMAGE | TokenTypes.WEB
):
elif canarydrop.type in [
TokenTypes.SLOW_REDIRECT,
TokenTypes.WEB_IMAGE,
TokenTypes.WEB,
]:
key = request.args.get(b"key", [None])[0]
if (key := coerce_to_float(key)) and token:
additional_info = {
Expand Down

0 comments on commit ef6f9a6

Please sign in to comment.