Skip to content

Commit ff68f50

Browse files
fix handle_header
1 parent ee421d6 commit ff68f50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/crow/http_connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ namespace crow
136136
CROW_LOG_ERROR << ec << " buffer write error happened while handling sending continuation buffer header";
137137
}
138138
}
139-
if (!routing_handle_result_->rule_index && req_.method == HTTPMethod::Options)
139+
if (!routing_handle_result_->rule_index && !routing_handle_result_->catch_all && req_.method == HTTPMethod::Options)
140140
{
141141
parser_.done();
142142
need_to_call_after_handlers_ = true;

0 commit comments

Comments
 (0)