We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af7f2c commit 61893a0Copy full SHA for 61893a0
httplib.h
@@ -2066,7 +2066,9 @@ template <size_t N> inline constexpr size_t str_len(const char (&)[N]) {
2066
}
2067
2068
inline bool is_numeric(const std::string &str) {
2069
- return !str.empty() && std::all_of(str.begin(), str.end(), ::isdigit);
+ return !str.empty() &&
2070
+ std::all_of(str.cbegin(), str.cend(),
2071
+ [](unsigned char c) { return std::isdigit(c); });
2072
2073
2074
inline uint64_t get_header_value_u64(const Headers &headers,
0 commit comments