1
0
mirror of synced 2025-04-20 11:47:43 +03:00

Release v0.15.2

This commit is contained in:
yhirose 2024-02-02 23:29:30 -05:00
parent 762024b890
commit 80c0cc445e

View File

@ -8,7 +8,7 @@
#ifndef CPPHTTPLIB_HTTPLIB_H #ifndef CPPHTTPLIB_HTTPLIB_H
#define CPPHTTPLIB_HTTPLIB_H #define CPPHTTPLIB_HTTPLIB_H
#define CPPHTTPLIB_VERSION "0.15.1" #define CPPHTTPLIB_VERSION "0.15.2"
/* /*
* Configuration * Configuration
@ -2417,8 +2417,11 @@ inline bool is_valid_path(const std::string &path) {
// Read component // Read component
auto beg = i; auto beg = i;
while (i < path.size() && path[i] != '/') { while (i < path.size() && path[i] != '/') {
if (path[i] == '\0') { return false; } if (path[i] == '\0') {
else if (path[i] == '\\') { return false; } return false;
} else if (path[i] == '\\') {
return false;
}
i++; i++;
} }