diff options
Diffstat (limited to 'include/routing.h')
-rw-r--r-- | include/routing.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/routing.h b/include/routing.h index d814266..ca88192 100644 --- a/include/routing.h +++ b/include/routing.h @@ -623,16 +623,13 @@ public: void handle(const request& req, response& res) { - // remove url params - auto editedUrl = req.url.substr(0, req.url.find("?")); - - auto found = trie_.find(editedUrl); + auto found = trie_.find(req.url); unsigned rule_index = found.first; if (!rule_index) { - CROW_LOG_DEBUG << "Cannot match rules " << editedUrl; + CROW_LOG_DEBUG << "Cannot match rules " << req.url; res = response(404); res.end(); return; |