mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Release v0.15.2
This commit is contained in:
parent
762024b890
commit
80c0cc445e
1 changed files with 6 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
#ifndef CPPHTTPLIB_HTTPLIB_H
|
||||
#define CPPHTTPLIB_HTTPLIB_H
|
||||
|
||||
#define CPPHTTPLIB_VERSION "0.15.1"
|
||||
#define CPPHTTPLIB_VERSION "0.15.2"
|
||||
|
||||
/*
|
||||
* Configuration
|
||||
|
@ -2417,8 +2417,11 @@ inline bool is_valid_path(const std::string &path) {
|
|||
// Read component
|
||||
auto beg = i;
|
||||
while (i < path.size() && path[i] != '/') {
|
||||
if (path[i] == '\0') { return false; }
|
||||
else if (path[i] == '\\') { return false; }
|
||||
if (path[i] == '\0') {
|
||||
return false;
|
||||
} else if (path[i] == '\\') {
|
||||
return false;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue