|
|
@ -70,7 +70,7 @@ void Webserver::remove_url_handler(std::string url_regex) { |
|
|
|
Webserver::handler_t Webserver::find_handler(request& r, boost::cmatch& m) |
|
|
|
{ |
|
|
|
for (auto it=_urls.begin(); it!=_urls.end(); ++it) { |
|
|
|
if (boost::regex_match(r.target().data(), it->second.regex)) |
|
|
|
if (boost::regex_match(r.target().data(), m, it->second.regex)) |
|
|
|
return it->second.handler; |
|
|
|
} |
|
|
|
|
|
|
|