Make "*" method actually catch all methods, tweak priority order a bit

This commit is contained in:
Alex Hultman
2023-12-19 03:18:44 +01:00
parent 85c6f0fb69
commit 97e8099bc2
3 changed files with 36 additions and 22 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ public:
/* Todo: This is ugly, fix */
std::vector<std::string> methods;
if (method == "*") {
methods = httpContextData->currentRouter->upperCasedMethods;
methods = {"*"};
} else {
methods = {method};
}