Update esphome/components/http_request/http_request_idf.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2026-01-21 12:25:54 -10:00
committed by GitHub
parent 68b328c019
commit dffc9257dd
@@ -232,7 +232,7 @@ int HttpContainerIDF::read(uint8_t *buf, size_t max_len) {
}
// read_len_or_error < 0: check for EAGAIN (no data available in non-blocking mode)
// ESP_ERR_HTTP_EAGAIN = 0x7007, returned as negative
// ESP_ERR_HTTP_EAGAIN is returned as a negative error code
if (read_len_or_error == -ESP_ERR_HTTP_EAGAIN) {
return 0; // No data available yet, caller should retry
}