Commit 214414e
authored
Fix: Add HTTP status code error handling to prevent download hangs (#495)
When download requests receive HTTP error responses (like 429, 503, etc.), the code was previously waiting indefinitely for chunks that would never arrive.
This adds `response.error_for_status_ref()?` which immediately fails with a clear
error message when the server returns an error status code.
Fixes an issue where some modpack downloads would hang at 0 B/s indefinitely.1 parent 9b9d085 commit 214414e
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
0 commit comments