Commit 799fa9b
committed
refactor(audience-sdk): drop response-body cap on OnError messages
Removes MaxErrorBodyChars (500) and the trim ternary inside
ReadBodyForErrorAsync. The cap was defensive against verbose backend
responses (stack traces, HTML error pages) but the audience backend
returns short structured JSON for both 4xx and 5xx, making the cap
dead code. Consumers now see the full response body verbatim.1 parent 9e825b9 commit 799fa9b
1 file changed
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 285 | | |
291 | 286 | | |
292 | 287 | | |
| |||
295 | 290 | | |
296 | 291 | | |
297 | 292 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 293 | + | |
303 | 294 | | |
304 | 295 | | |
305 | 296 | | |
| |||
0 commit comments