From 1ec379a805fdc4e7e076f1f59fa054bde8cf89c2 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 2 Jan 2011 13:47:24 +0100 Subject: Urldecode query arguments. --- http_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http_connection.cpp') 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()> path_p = '/' >> +(urlchar_p - '/' - '?' - ' ') % '/'; - qi::rule()> pair_p = +(qi::char_ - '=') >> '=' >> +(qi::char_ - '&' - ' '); + qi::rule()> pair_p = +(urlchar_p - '=') >> '=' >> +(urlchar_p - '&' - ' '); qi::rule()> args_p = '?' >> pair_p >> *('&' >> pair_p); qi::rule()> header_p = +(qi::char_ - ':') >> ": " >> +(qi::char_ - '\r'); -- cgit v1.2.3