Commit aff4bb5
committed
Simplify bounded HTML reads
The bounded HTML path can rely on the standard Response body type instead
of defensive assertions for non-standard mocks. The parser now preserves
HTML-labelled JSON compatibility by attempting JSON.parse() directly and
converts syntax failures into the same FetchError used for ordinary HTML.
#913 (comment)
#913 (comment)
#913 (comment)
#913 (comment)
#913 (comment)
Assisted-by: Codex:gpt-5.51 parent 58fa680 commit aff4bb5
2 files changed
Lines changed: 7 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | 372 | | |
405 | 373 | | |
406 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 125 | + | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | | - | |
| 137 | + | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 145 | + | |
160 | 146 | | |
161 | 147 | | |
162 | 148 | | |
| |||
319 | 305 | | |
320 | 306 | | |
321 | 307 | | |
322 | | - | |
323 | | - | |
| 308 | + | |
324 | 309 | | |
325 | | - | |
| 310 | + | |
| 311 | + | |
326 | 312 | | |
327 | 313 | | |
328 | 314 | | |
| |||
0 commit comments