Skip to content

Commit

Permalink
csrf filter: fix casing of additional origins method (envoyproxy#8511)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Schaller <[email protected]>
  • Loading branch information
dschaller authored and mattklein123 committed Oct 8, 2019
1 parent 632a677 commit d695072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/extensions/filters/http/csrf/csrf_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool CsrfFilter::isValid(const absl::string_view source_origin, Http::HeaderMap&
return true;
}

for (const auto& additional_origin : policy_->additional_origins()) {
for (const auto& additional_origin : policy_->additionalOrigins()) {
if (additional_origin->match(source_origin)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion source/extensions/filters/http/csrf/csrf_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CsrfPolicy : public Router::RouteSpecificFilterConfig {
shadow_enabled.default_value());
}

const std::vector<Matchers::StringMatcherPtr>& additional_origins() const {
const std::vector<Matchers::StringMatcherPtr>& additionalOrigins() const {
return additional_origins_;
};

Expand Down

0 comments on commit d695072

Please sign in to comment.