|
@@ -4204,7 +4204,7 @@ inline void Server::stop() {
|
|
|
inline bool Server::parse_request_line(const char *s, Request &req) {
|
|
inline bool Server::parse_request_line(const char *s, Request &req) {
|
|
|
const static std::regex re(
|
|
const static std::regex re(
|
|
|
"(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI) "
|
|
"(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI) "
|
|
|
- "(([^?]+)(?:\\?(.*?))?) (HTTP/1\\.[01])\r\n");
|
|
|
|
|
|
|
+ "(([^? ]+)(?:\\?([^ ]*?))?) (HTTP/1\\.[01])\r\n");
|
|
|
|
|
|
|
|
std::cmatch m;
|
|
std::cmatch m;
|
|
|
if (std::regex_match(s, m, re)) {
|
|
if (std::regex_match(s, m, re)) {
|