Unverified Commit fe02566c authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #704 from hyperxor/fix_wrong_clone_method_in_rounter_handler

Fix clone method in RounterHandler
parents 380c0b02 d4f73a68
......@@ -241,6 +241,9 @@ namespace Private {
class RouterHandler : public Http::Handler {
public:
HTTP_PROTOTYPE(RouterHandler)
/**
* Used for immutable router. Useful if all the routes are
* defined at compile time (and for backward compatibility)
......@@ -259,10 +262,6 @@ public:
Http::ResponseWriter response) override;
private:
std::shared_ptr<Tcp::Handler> clone() const final {
return std::make_shared<RouterHandler>(router);
}
std::shared_ptr<Rest::Router> router;
};
} // namespace Private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment