From 27b73f050ee5d55b7552a3f18a5f345755673de8 Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 5 Dec 2025 08:50:12 -0500 Subject: [PATCH] Fix #2287 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index a7296b9..c0fbbf5 100644 --- a/httplib.h +++ b/httplib.h @@ -2931,7 +2931,7 @@ inline bool is_field_value(const std::string &s) { return is_field_content(s); } namespace detail { inline bool is_hex(char c, int &v) { - if (0x20 <= c && isdigit(c)) { + if (isdigit(c)) { v = c - '0'; return true; } else if ('A' <= c && c <= 'F') {