summaryrefslogtreecommitdiff
path: root/include/http_utility.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/http_utility.hpp')
-rw-r--r--include/http_utility.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/http_utility.hpp b/include/http_utility.hpp
index 740e2187ce..3970992974 100644
--- a/include/http_utility.hpp
+++ b/include/http_utility.hpp
@@ -53,7 +53,7 @@ inline std::string urlEncode(const std::string_view value)
for (const char c : value)
{
// Keep alphanumeric and other accepted characters intact
- if (isalnum(c) || c == '-' || c == '_' || c == '.' || c == '~')
+ if ((isalnum(c) != 0) || c == '-' || c == '_' || c == '.' || c == '~')
{
escaped << c;
continue;