mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fixed request parsing regex typo
This commit is contained in:
parent
222f49a125
commit
d26ee03613
1 changed files with 1 additions and 1 deletions
|
@ -1528,7 +1528,7 @@ inline bool Server::parse_request_line(const char* s, Request& req)
|
|||
|
||||
std::cmatch m;
|
||||
if (std::regex_match(s, m, re)) {
|
||||
req.version = std::string(m[4]);
|
||||
req.version = std::string(m[5]);
|
||||
req.method = std::string(m[1]);
|
||||
req.target = std::string(m[2]);
|
||||
req.path = detail::decode_url(m[3]);
|
||||
|
|
Loading…
Reference in a new issue