fix matches() method v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 21 Apr 2022 00:22:02 +0200
branchv_0
changeset 27 b679797949e9
parent 26 53c6f76603f6
child 28 fe61bf7d1716
fix matches() method
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<relpipe::reader::handlers::AttributeMetadata> currentReaderMetadata;
-	std::vector<relpipe::writer::AttributeMetadata> currentWriterMetadata;
 	HeaderDefinition requestHeader;
 	relpipe::common::type::StringX requestId;
 	HTTPClient::Request request;