diff options
-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'); |