Commit 37d5f65
fix: Ensure buffer reset preserves mutability and binary encoding
Replace `buffer = ""` with `buffer = +"".b` so the reset buffer remains
unfrozen and binary-encoded, matching the initial assignment. Without
this, `buffer << chunk` after the reset would raise a FrozenError in
Ruby 3.4+ where string literals are frozen by default.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2d61236 commit 37d5f65
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments