summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-08 19:11:29 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-08 19:11:29 +0200
commit905abe4f233d23a567b0d36bd1d25e86bc949e60 (patch)
treefc2f9cbe048ac90f93d2c518c6eef46475c40869
parent49437d5ff26b88a7a4438c2ca664ec6ffdb77317 (diff)
Small fixes
-rw-r--r--config.cpp2
-rw-r--r--plugins/fcgi/socket.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/config.cpp b/config.cpp
index a2ff24c..26af2b5 100644
--- a/config.cpp
+++ b/config.cpp
@@ -257,7 +257,7 @@ const Path& Config::GetPath(const Socket& socket, const std::string& requested_h
if (m_host == host) {
for (const auto& path: site.paths) {
if (boost::starts_with(requested_path, path.requested) &&
- "/&\0"s.find(requested_path[path.requested.size()]) != std::string::npos &&
+ "/?\0"s.find(requested_path[path.requested.size()]) != std::string::npos &&
path.requested.size() > path_len)
{
path_len = path.requested.size();
diff --git a/plugins/fcgi/socket.cpp b/plugins/fcgi/socket.cpp
index 49a8651..228964c 100644
--- a/plugins/fcgi/socket.cpp
+++ b/plugins/fcgi/socket.cpp
@@ -17,7 +17,6 @@ FCGI_ID& Socket::fcgi_id()
}
SocketFactory::SocketFactory()
- : m_io_context()
{
}