mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
fix MSVC2015 error: std::tolower to ::lower (#689)
This commit is contained in:
parent
7e8db1dc68
commit
b713a3a651
1 changed files with 1 additions and 1 deletions
|
@ -1229,7 +1229,7 @@ inline std::string from_i_to_hex(size_t n) {
|
|||
inline bool start_with(const std::string &a, const std::string &b) {
|
||||
if (a.size() < b.size()) { return false; }
|
||||
for (size_t i = 0; i < b.size(); i++) {
|
||||
if (std::tolower(a[i]) != std::tolower(b[i])) { return false; }
|
||||
if (::tolower(a[i]) != ::tolower(b[i])) { return false; }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue