mirror of
https://github.com/wownero/wownero.git
synced 2026-10-19 16:38:35 +02:00
epee: parse HTTP methods case-sensitively
This commit is contained in:
@@ -400,7 +400,7 @@ namespace net_utils
|
|||||||
template<class t_connection_context>
|
template<class t_connection_context>
|
||||||
bool simple_http_connection_handler<t_connection_context>::handle_invoke_query_line()
|
bool simple_http_connection_handler<t_connection_context>::handle_invoke_query_line()
|
||||||
{
|
{
|
||||||
static const boost::regex rexp_match_command_line("^(((OPTIONS)|(GET)|(HEAD)|(POST)|(PUT)|(DELETE)|(TRACE)) (\\S+) HTTP/(\\d+)\\.(\\d+))\r?\n", boost::regex::icase | boost::regex::normal);
|
static const boost::regex rexp_match_command_line("^(((OPTIONS)|(GET)|(HEAD)|(POST)|(PUT)|(DELETE)|(TRACE)) (\\S+) HTTP/(\\d+)\\.(\\d+))\r?\n", boost::regex::normal);
|
||||||
// 123 4 5 6 7 8 9 10 11 12
|
// 123 4 5 6 7 8 9 10 11 12
|
||||||
//size_t match_len = 0;
|
//size_t match_len = 0;
|
||||||
boost::smatch result;
|
boost::smatch result;
|
||||||
|
|||||||
Reference in New Issue
Block a user