Skip to content

Commit

Permalink
Update hook config
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 9, 2025
1 parent c70cd9b commit 4ac7e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## [Unreleased]
### Changed
- `helpers.is_binary` function to improve binary content detection, by @HardNorth

## [5.6.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion reportportal_client/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def is_binary(iterable: Union[bytes, bytearray, str]) -> bool:
else:
byte_iterable = iterable

if 0x00 in byte_iterable:
if b'\x00' in byte_iterable or b'\xff' in byte_iterable:
return True
return False

Expand Down

0 comments on commit 4ac7e4f

Please sign in to comment.