Don't do comparison check. This breaks if the user literally enters :
FossilOrigin-Name: 2b4c8ea15f59d329c85e9803b5ed691a25d4544ecdce0a4d54580365b793f4dd
This commit is contained in:
parent
ccd128b839
commit
5f8d1cc3f4
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue