[http_request] Fix infinite loop when server doesn't send Content-Length header (#12480)

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Pascal Vizeli
2025-12-15 12:54:12 -05:00
committed by GitHub
co-authored by Claude Sonnet 4.5
parent 2e899dd010
commit 260ffba2a5
3 changed files with 23 additions and 5 deletions
@@ -76,6 +76,11 @@ void HttpRequestUpdate::update_task(void *params) {
yield();
if (read_bytes <= 0) {
// Network error or connection closed - break to avoid infinite loop
break;
}
read_index += read_bytes;
}