From b9ff70b589d3b0aab18d61d48f373688fe6d66bc Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 20 Jun 2018 06:34:00 +0000 Subject: [PATCH] Fix: Only allow access to "*" for OPTIONS --- src/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index 72efedf4..d480a05f 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1689,7 +1689,7 @@ static void _handle_connection(void) continue; } - if (strcmp(rawuri, "*") == 0) { + if (parser->req_type == httpp_req_options && strcmp(rawuri, "*") == 0) { client_send_204(client); continue; }