Skip to content

Commit

Permalink
#910 payload really is string, not bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Feb 1, 2024
1 parent 9e546ef commit 8da9095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sarracenia/postformat/v02.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def mine(payload, headers, content_type, options) -> bool:
return True

# all the other formats are JSON based. only v02 has plain-text body.
if not b'{' in payload[0:5]:
if not '{' in payload[0:5]:
return True

# in the v02, we used topic to identify message format. (not reliable for other formats.)
Expand Down

0 comments on commit 8da9095

Please sign in to comment.