Browse Source

...

pull/1/head
Volker Birk 2 years ago
parent
commit
1f5cf10baa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      webserver.cc

+ 1
- 1
webserver.cc View File

@ -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;
}


Loading…
Cancel
Save