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 6d83f6d commit ee421d6Copy full SHA for ee421d6
1 file changed
include/crow/http_connection.h
@@ -113,7 +113,7 @@ namespace crow
113
{
114
routing_handle_result_ = handler_->handle_initial(req_, res);
115
// if no route is found for the request method, return the response without parsing or processing anything further.
116
- if (!routing_handle_result_->rule_index && !routing_handle_result_->catch_all && req_.method != HTTPMethod::Options)
+ if (!routing_handle_result_->rule_index && !routing_handle_result_->catch_all && (req_.method != HTTPMethod::Options || routing_handle_result_->method == HTTPMethod::InternalMethodCount))
117
118
parser_.done();
119
need_to_call_after_handlers_ = true;
0 commit comments