summaryrefslogtreecommitdiff
path: root/http_connection.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 13:47:24 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 13:47:24 +0100
commit1ec379a805fdc4e7e076f1f59fa054bde8cf89c2 (patch)
treeff055d845bcd7e5a0bf7f8ce725c38fa8cd11047 /http_connection.cpp
parent3a4010028fc7d310c841c3d96d69008ce7d6c288 (diff)
Urldecode query arguments.
Diffstat (limited to 'http_connection.cpp')
-rw-r--r--http_connection.cpp2
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');