Skip to content

Commit 4ac7e4f

Browse files
committed
Update hook config
1 parent c70cd9b commit 4ac7e4f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

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

57
## [5.6.0]
68
### Added

reportportal_client/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def is_binary(iterable: Union[bytes, bytearray, str]) -> bool:
421421
else:
422422
byte_iterable = iterable
423423

424-
if 0x00 in byte_iterable:
424+
if b'\x00' in byte_iterable or b'\xff' in byte_iterable:
425425
return True
426426
return False
427427

0 commit comments

Comments
 (0)