diff options
author | Ed Tanous <ed@tanous.net> | 2024-03-20 19:30:12 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-03-21 18:56:57 +0300 |
commit | 8983cf565b1695040938a30adcfb4f32f7972ae0 (patch) | |
tree | 4652b0cd5624358b3a29a2f04b917de80beb1362 /http | |
parent | 1fccd0d5eafd56049a8a381543dd83d5559fbf25 (diff) | |
download | bmcweb-8983cf565b1695040938a30adcfb4f32f7972ae0.tar.xz |
Allow routes with 5 wildcards
We don't have any routes that use 5 wildcards, but clearly someone uses
it because of the bug #270. There's no reason not to fix this.
Ideally we would support an arbitrary number of wildcards, but that's a
template problem for another day.
Tested: No way to test, inspection only.
Change-Id: I5de75f5288124e84c153518966d658e1c899f6d5
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'http')
-rw-r--r-- | http/routing.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/routing.hpp b/http/routing.hpp index 6ab1327ffa..562abaf06c 100644 --- a/http/routing.hpp +++ b/http/routing.hpp @@ -431,7 +431,7 @@ class Router allRules.emplace_back(std::move(ruleObject)); return *ptr; } - static_assert(numArgs < 5, "Max number of args supported is 5"); + static_assert(numArgs <= 5, "Max number of args supported is 5"); } void internalAddRuleObject(const std::string& rule, BaseRule* ruleObject) |