aboutsummaryrefslogtreecommitdiff
path: root/web/server
diff options
context:
space:
mode:
Diffstat (limited to 'web/server')
-rw-r--r--web/server/apache/request.cxx2
-rw-r--r--web/server/apache/service.cxx2
-rw-r--r--web/server/module.hxx3
3 files changed, 4 insertions, 3 deletions
diff --git a/web/server/apache/request.cxx b/web/server/apache/request.cxx
index 64e1e6d..f6e9f15 100644
--- a/web/server/apache/request.cxx
+++ b/web/server/apache/request.cxx
@@ -789,7 +789,7 @@ namespace web
if (is != nullptr)
{
if (r != nullptr)
- throw invalid_argument ("multiple uploads for '" + name + "'");
+ throw invalid_argument ("multiple uploads for '" + name + '\'');
r = is;
}
diff --git a/web/server/apache/service.cxx b/web/server/apache/service.cxx
index af5873e..6d02c1a 100644
--- a/web/server/apache/service.cxx
+++ b/web/server/apache/service.cxx
@@ -47,7 +47,7 @@ namespace web
for (const auto& o: od)
{
auto i (
- option_descriptions_.emplace (name_ + "-" + o.first, o.second));
+ option_descriptions_.emplace (name_ + '-' + o.first, o.second));
assert (i.second);
*d++ =
diff --git a/web/server/module.hxx b/web/server/module.hxx
index f870163..20f6217 100644
--- a/web/server/module.hxx
+++ b/web/server/module.hxx
@@ -9,6 +9,7 @@
#include <vector>
#include <iosfwd>
#include <chrono>
+#include <memory> // enable_shared_from_this
#include <cstdint> // uint16_t
#include <cstddef> // size_t
#include <utility> // move()
@@ -236,7 +237,7 @@ namespace web
// directories (e.g., apache/) if you need to see the code that
// does this.
//
- class handler
+ class handler: public std::enable_shared_from_this<handler>
{
public:
virtual