Permalink
Browse files

fix HTTP dot parsing in http_protocol_handler

  • Loading branch information...
miltonf committed Nov 22, 2018
1 parent bca7fd8 commit a283928e9641650b0de99c648598a5400bb40505
Showing with 1 addition and 1 deletion.
  1. +1 −1 contrib/epee/include/net/http_protocol_handler.inl
@@ -337,7 +337,7 @@ namespace net_utils
template<class t_connection_context>
bool simple_http_connection_handler<t_connection_context>::handle_invoke_query_line()
{
STATIC_REGEXP_EXPR_1(rexp_match_command_line, "^(((OPTIONS)|(GET)|(HEAD)|(POST)|(PUT)|(DELETE)|(TRACE)) (\\S+) HTTP/(\\d+).(\\d+))\r?\n", boost::regex::icase | boost::regex::normal);
STATIC_REGEXP_EXPR_1(rexp_match_command_line, "^(((OPTIONS)|(GET)|(HEAD)|(POST)|(PUT)|(DELETE)|(TRACE)) (\\S+) HTTP/(\\d+)\\.(\\d+))\r?\n", boost::regex::icase | boost::regex::normal);
// 123 4 5 6 7 8 9 10 11 12
//size_t match_len = 0;
boost::smatch result;

0 comments on commit a283928

Please sign in to comment.