Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
Signed-off-by: wbpcode <wbphub@live.com>
  • Loading branch information
wbpcode committed Nov 7, 2023
1 parent 10cffe2 commit aa6af0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions source/common/access_log/access_log_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,7 @@ class AccessLogFactory {

auto& factory = Config::Utility::getAndCheckFactory<ExtensionFilterFactoryBase<Context>>(
config.extension_filter());
auto typed_filter_config = Config::Utility::translateToFactoryConfig(
config.extension_filter(), context.messageValidationVisitor(), factory);

return factory.createFilter(*typed_filter_config, context);
return factory.createFilter(config.extension_filter(), context);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions source/common/local_reply/local_reply.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class ResponseMapper {
BodyFormatter*& final_formatter) const {
// If not matched, just bail out.
if (filter_ == nullptr ||
!filter_->evaluate(stream_info, request_headers, response_headers, response_trailers,
AccessLog::AccessLogType::NotSet)) {
!filter_->evaluate({&request_headers, &response_headers, &response_trailers},
stream_info)) {
return false;
}

Expand Down

0 comments on commit aa6af0b

Please sign in to comment.