Commit c6812c1
committed
refactor(fe): carry only the content type onto the capped blob
Rewrapping the capped stream with the whole original header set attaches
a `Content-Length` and `Content-Encoding` that no longer describe it --
harmless for `.blob()`, but only by accident. The content type is the one
header the blob actually needs, so that's all that comes along.
Also assert what the decoder is handed: `createImageBitmap` must receive
a `Blob`, which is what keeps the encoded image out of the JS heap. That
property was easy to regress silently.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ApQTUxtZxjzpFsoJqKCXxo1 parent 130f460 commit c6812c1
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
0 commit comments