Skip to content

Commit

Permalink
Release v0.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Feb 3, 2024
1 parent 762024b commit 80c0cc4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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++;
}

Expand Down

0 comments on commit 80c0cc4

Please sign in to comment.