Skip to content

Commit 80c0cc4

Browse files
committed
Release v0.15.2
1 parent 762024b commit 80c0cc4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

httplib.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef CPPHTTPLIB_HTTPLIB_H
99
#define CPPHTTPLIB_HTTPLIB_H
1010

11-
#define CPPHTTPLIB_VERSION "0.15.1"
11+
#define CPPHTTPLIB_VERSION "0.15.2"
1212

1313
/*
1414
* Configuration
@@ -2417,8 +2417,11 @@ inline bool is_valid_path(const std::string &path) {
24172417
// Read component
24182418
auto beg = i;
24192419
while (i < path.size() && path[i] != '/') {
2420-
if (path[i] == '\0') { return false; }
2421-
else if (path[i] == '\\') { return false; }
2420+
if (path[i] == '\0') {
2421+
return false;
2422+
} else if (path[i] == '\\') {
2423+
return false;
2424+
}
24222425
i++;
24232426
}
24242427

0 commit comments

Comments
 (0)