Skip to content

Commit d8da740

Browse files
committed
1 parent d45676b commit d8da740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@ inline void Server::stop() {
24682468
inline bool Server::parse_request_line(const char *s, Request &req) {
24692469
static std::regex re(
24702470
"(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI) "
2471-
"(([^?]+)(?:\\?(.+?))?) (HTTP/1\\.[01])\r\n");
2471+
"(([^?]+)(?:\\?(.*?))?) (HTTP/1\\.[01])\r\n");
24722472

24732473
std::cmatch m;
24742474
if (std::regex_match(s, m, re)) {

0 commit comments

Comments
 (0)