Skip to content

test_get_object_torrent: treat response body as bytes#726

Open
drey123 wants to merge 1 commit intoceph:masterfrom
drey123:omni-fix-torrent-bytes
Open

test_get_object_torrent: treat response body as bytes#726
drey123 wants to merge 1 commit intoceph:masterfrom
drey123:omni-fix-torrent-bytes

Conversation

@drey123
Copy link

@drey123 drey123 commented Feb 20, 2026

Fixes: #725

Torrent files are binary (bencode with raw SHA1 digests in the pieces field), so the test should not decode the response body as UTF-8.

This change makes test_get_object_torrent compare bytes safely when a backend returns an actual torrent body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_get_object_torrent: treat torrent body as bytes (not UTF-8)

1 participant