mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-26 12:24:46 +00:00
Fix #2287
This commit is contained in:
1 parent
dbd5ca4bf2
commit
27b73f050e
1 file changed
+1
-1
@@ -2931,7 +2931,7 @@ inline bool is_field_value(const std::string &s) { return is_field_content(s); }
|
|||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
inline bool is_hex(char c, int &v) {
|
inline bool is_hex(char c, int &v) {
|
||||||
if (0x20 <= c && isdigit(c)) {
|
if (isdigit(c)) {
|
||||||
v = c - '0';
|
v = c - '0';
|
||||||
return true;
|
return true;
|
||||||
} else if ('A' <= c && c <= 'F') {
|
} else if ('A' <= c && c <= 'F') {
|
||||||
|
|||||||
Reference in new issue
Block a user