Don't do comparison check. This breaks if the user literally enters :

FossilOrigin-Name: 2b4c8ea15f59d329c85e9803b5ed691a25d4544ecdce0a4d54580365b793f4dd
This commit is contained in:
nekobit 2022-10-01 04:27:52 +00:00
parent ccd128b839
commit 5f8d1cc3f4

View file

@ -50,11 +50,6 @@ std::optional<HTTP::Response const> Server::handle_request(const HTTP::Request &
{
for (auto& reqs: req_map)
{
// Quick check
if (request == reqs.first)
return reqs.second({});
// If that didn't work, try a full check
auto args = reqs.first.match_get_args(request);
if (args)
reqs.second(*args);