diff --git a/src/Parser.cpp b/src/Parser.cpp index 014a872..5765683 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -137,6 +137,7 @@ ERROR Parser::parse(Request *request, Client *client) { // TODO: check section 3.2 of RFC 2616 for the correct format of the URL std::string url = analyzeUrl(request->getUrl()); // TODO: test this + // Issue URL: https://github.com/PapaLeoneIV/42WebServer/issues/1 if (url.find_first_not_of(ALLOWED_CHARS) != std::string::npos || url.find_first_of("/") != 0) { client->getResponse()->setStatusCode(400); return INVALID_HEADER;