# HG changeset patch # User František Kučera # Date 1650493322 -7200 # Node ID b679797949e99a7c88b61a17c9dd6cc97ecd87b6 # Parent 53c6f76603f6e708c60fb7acab154e169d5df664 fix matches() method diff -r 53c6f76603f6 -r b679797949e9 src/HTTPHandler.h --- a/src/HTTPHandler.h Tue Apr 05 00:18:49 2022 +0200 +++ b/src/HTTPHandler.h Thu Apr 21 00:22:02 2022 +0200 @@ -56,9 +56,9 @@ relpipe::common::type::StringX value; bool matches(const relpipe::common::type::StringX& request, const relpipe::common::type::StringX& url) const { - bool result = false; - result |= std::regex_match(request, this->request); - result |= std::regex_match(url, this->url); + bool result = true; + result &= std::regex_match(request, this->request); + result &= std::regex_match(url, this->url); return result; } }; @@ -68,7 +68,6 @@ Configuration configuration; relpipe::common::type::StringX currentRelationName; std::vector currentReaderMetadata; - std::vector currentWriterMetadata; HeaderDefinition requestHeader; relpipe::common::type::StringX requestId; HTTPClient::Request request;