aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-15 16:30:16 +0200
committerStefan Boberg <[email protected]>2021-10-15 16:30:16 +0200
commit8bc1f8ebdcd9a2791f1411837596778a328768c1 (patch)
tree8186c70351f9337b1a3d9ded87ec2e64002346ec /zenhttp/httpserver.cpp
parentzencore: Enabled MSC warning 4668 to get warnings when preprocessor macros ar... (diff)
downloadzen-8bc1f8ebdcd9a2791f1411837596778a328768c1.tar.xz
zen-8bc1f8ebdcd9a2791f1411837596778a328768c1.zip
Fixed logic for picking a default http implementation, which was caused by inconsistent preprocessor definitions
Diffstat (limited to 'zenhttp/httpserver.cpp')
-rw-r--r--zenhttp/httpserver.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp
index 150054c30..f40836c4a 100644
--- a/zenhttp/httpserver.cpp
+++ b/zenhttp/httpserver.cpp
@@ -577,12 +577,12 @@ CreateHttpServer(std::string_view ServerClass)
{
using namespace std::literals;
-#if 1
- HttpServerClass Class = HttpServerClass::kHttpAsio;
-#elif ZEN_WITH_HTTPSYS
- HttpServerClass Class = HttpServerClass::kHttpSys;
-#else
HttpServerClass Class = HttpServerClass::kHttpNull;
+
+#if ZEN_WITH_HTTPSYS
+ Class = HttpServerClass::kHttpSys;
+#elif 1
+ Class = HttpServerClass::kHttpAsio;
#endif
if (ServerClass == "asio"sv)