Skip to content

Commit

Permalink
Automatically added GitHub issue links to TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 22, 2025
1 parent 3a19cf1 commit 991314f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 991314f

Please sign in to comment.