Added QueryString class with create and parse functions to utility.hpp
This commit is contained in:
parent
1d9e900f44
commit
98d9617244
3 changed files with 61 additions and 31 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue