From d8da740597e3ab400f2939864fbed1255a048f1d Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 26 Nov 2019 08:48:17 -0500 Subject: [PATCH] Fix #270 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 744b90a..539a7f4 100644 --- a/httplib.h +++ b/httplib.h @@ -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)) {