[http_request] Fix chunked transfer encoding on Arduino platforms (#13790)

This commit is contained in:
J. Nick Koston
2026-02-06 15:52:41 +01:00
committed by GitHub
parent e4ad2082bc
commit c3622ef7fb
5 changed files with 198 additions and 26 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ size_t parse_hex(const char *str, size_t length, uint8_t *data, size_t count) {
size_t chars = std::min(length, 2 * count);
for (size_t i = 2 * count - chars; i < 2 * count; i++, str++) {
uint8_t val = parse_hex_char(*str);
if (val > 15)
if (val == INVALID_HEX_CHAR)
return 0;
data[i >> 1] = (i & 1) ? data[i >> 1] | val : val << 4;
}