Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d45676b commit d8da740Copy full SHA for d8da740
httplib.h
@@ -2468,7 +2468,7 @@ inline void Server::stop() {
2468
inline bool Server::parse_request_line(const char *s, Request &req) {
2469
static std::regex re(
2470
"(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI) "
2471
- "(([^?]+)(?:\\?(.+?))?) (HTTP/1\\.[01])\r\n");
+ "(([^?]+)(?:\\?(.*?))?) (HTTP/1\\.[01])\r\n");
2472
2473
std::cmatch m;
2474
if (std::regex_match(s, m, re)) {
0 commit comments