Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

test_get_object_torrent: treat response body as bytes - #726

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

drey123 wants to merge 1 commit into
ceph:masterfrom
drey123:omni-fix-torrent-bytes

Conversation

@drey123

@drey123 drey123 commented Feb 20, 2026 •

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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