Added QueryString class with create and parse functions to utility.hpp

This commit is contained in:
eidheim 2017-06-25 16:43:49 +02:00
commit 98d9617244
3 changed files with 61 additions and 31 deletions

View file

@ -165,7 +165,7 @@ namespace SimpleWeb {
CaseInsensitiveMultimap parse_query_string() {
auto pos = path.find('?');
if (pos != std::string::npos && pos + 1 < path.size())
return SimpleWeb::parse_query_string(path.substr(pos + 1));
return SimpleWeb::QueryString::parse(path.substr(pos + 1));
else
return CaseInsensitiveMultimap();
}