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.
2 parents 786a607 + 2c7519c commit 5a3b13fCopy full SHA for 5a3b13f
src/middleware/cors.cpp
@@ -53,7 +53,10 @@ void expresso::middleware::Cors::allowMethod(std::string method) {
53
std::set<std::string>::const_iterator methodIter =
54
expresso::enums::methods.find(method);
55
if (methodIter == expresso::enums::methods.end()) {
56
- logger::warning("Invalid CORS method: " + method);
+ logger::error(
57
+ "Invalid CORS method: " + method,
58
+ "void expresso::middleware::Cors::allowMethod(std::string method)");
59
+ return;
60
}
61
62
this->methods.insert(static_cast<expresso::enums::method>(
0 commit comments