From 06842721d7da53a2235e6e4071760588ec285f90 Mon Sep 17 00:00:00 2001 From: Antony Woods Date: Tue, 14 Oct 2014 09:48:35 +0100 Subject: Wrapped qs_parse as query_string and added tests --- include/routing.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include/routing.h') 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; -- cgit v1.2.3-54-g00ecf