We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8c5823 commit 9a2d672Copy full SHA for 9a2d672
1 file changed
lib/src/HttpControllersRouter.cc
@@ -63,6 +63,11 @@ void HttpControllersRouter::init(
63
initMiddlewaresAndCorsMethods(iter.second);
64
}
65
66
+ for (auto &router : wsCtrlVector_)
67
+ {
68
+ initMiddlewaresAndCorsMethods(router);
69
+ }
70
+
71
for (auto &router : ctrlVector_)
72
{
73
router.regex_ = std::regex(router.pathParameterPattern_,
@@ -85,6 +90,7 @@ void HttpControllersRouter::reset()
85
90
ctrlMap_.clear();
86
91
ctrlVector_.clear();
87
92
wsCtrlMap_.clear();
93
+ wsCtrlVector_.clear();
88
94
89
95
96
std::vector<HttpHandlerInfo> HttpControllersRouter::getHandlersInfo() const
0 commit comments