diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-01-02 13:47:24 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-01-02 13:47:24 +0100 |
commit | 1ec379a805fdc4e7e076f1f59fa054bde8cf89c2 (patch) | |
tree | ff055d845bcd7e5a0bf7f8ce725c38fa8cd11047 | |
parent | 3a4010028fc7d310c841c3d96d69008ce7d6c288 (diff) |
Urldecode query arguments.
-rw-r--r-- | http_connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http_connection.cpp b/http_connection.cpp index 79556e7..ef28089 100644 --- a/http_connection.cpp +++ b/http_connection.cpp @@ -75,7 +75,7 @@ bool HTTP::Connection::parse_request(boost::asio::streambuf& buf) { qi::rule<Iterator, std::vector<std::string>()> path_p = '/' >> +(urlchar_p - '/' - '?' - ' ') % '/'; - qi::rule<Iterator, std::pair<std::string, std::string>()> pair_p = +(qi::char_ - '=') >> '=' >> +(qi::char_ - '&' - ' '); + qi::rule<Iterator, std::pair<std::string, std::string>()> pair_p = +(urlchar_p - '=') >> '=' >> +(urlchar_p - '&' - ' '); qi::rule<Iterator, std::map<std::string, std::string>()> args_p = '?' >> pair_p >> *('&' >> pair_p); qi::rule<Iterator, std::pair<std::string, std::string>()> header_p = +(qi::char_ - ':') >> ": " >> +(qi::char_ - '\r'); |