Skip to content

Commit

Permalink
build(fix): compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Lombardo committed May 21, 2024
1 parent 5fb6ba5 commit 6f61ccf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/StaticContentHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ void StaticContentHandler::handleRequest(HTTPRequest &request, HTTPResponse &res
// is this necessary?
// if the last character of the path is a / and the first character of the request target is a /, we remove the
// first character of the request target
std::string requestTarget = path;
if (path[path.length() - 1] == '/' && requestTarget[0] == '/')
requestTarget = requestTarget.substr(1);

Expand Down

0 comments on commit 6f61ccf

Please sign in to comment.