mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fix #270
This commit is contained in:
parent
d45676b064
commit
d8da740597
1 changed files with 1 additions and 1 deletions
|
@ -2468,7 +2468,7 @@ inline void Server::stop() {
|
|||
inline bool Server::parse_request_line(const char *s, Request &req) {
|
||||
static std::regex re(
|
||||
"(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI) "
|
||||
"(([^?]+)(?:\\?(.+?))?) (HTTP/1\\.[01])\r\n");
|
||||
"(([^?]+)(?:\\?(.*?))?) (HTTP/1\\.[01])\r\n");
|
||||
|
||||
std::cmatch m;
|
||||
if (std::regex_match(s, m, re)) {
|
||||
|
|
Loading…
Reference in a new issue