mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-14 08:48:27 +00:00
Fix #2135
Some checks failed
test / ubuntu (64-bit) (push) Has been cancelled
abidiff / abi (push) Has been cancelled
test / style-check (push) Has been cancelled
test / ubuntu (32-bit) (push) Has been cancelled
test / macos (push) Has been cancelled
test / windows with SSL (push) Has been cancelled
test / windows without SSL (push) Has been cancelled
test / windows compiled (push) Has been cancelled
Some checks failed
test / ubuntu (64-bit) (push) Has been cancelled
abidiff / abi (push) Has been cancelled
test / style-check (push) Has been cancelled
test / ubuntu (32-bit) (push) Has been cancelled
test / macos (push) Has been cancelled
test / windows with SSL (push) Has been cancelled
test / windows without SSL (push) Has been cancelled
test / windows compiled (push) Has been cancelled
This commit is contained in:
parent
3af7f2c161
commit
61893a00a4
1 changed files with 3 additions and 1 deletions
|
@ -2066,7 +2066,9 @@ template <size_t N> inline constexpr size_t str_len(const char (&)[N]) {
|
|||
}
|
||||
|
||||
inline bool is_numeric(const std::string &str) {
|
||||
return !str.empty() && std::all_of(str.begin(), str.end(), ::isdigit);
|
||||
return !str.empty() &&
|
||||
std::all_of(str.cbegin(), str.cend(),
|
||||
[](unsigned char c) { return std::isdigit(c); });
|
||||
}
|
||||
|
||||
inline uint64_t get_header_value_u64(const Headers &headers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue