source/extensions/filters/http/ext_proc/mutation_utils.cc
// Ignore attempts to set certain sensitive headers that can break later processing.
// We may re-enable some of these after further testing. This logic is specific
// to the ext_proc filter so it is not shared with HeaderUtils.
Ignore attempts to set certain sensitive headers that can break later processing.
We may re-enable some of these after further testing. This logic is specific
to the ext_proc filter so it is not shared with HeaderUtils.
Ignore attempts to set certain sensitive headers that can break later processing . We may re - enable some of these after further testing . This logic is specific to the ext_proc filter so it is not shared with HeaderUtils .
bool MutationUtils::isSettableHeader(absl::string_view key) {
  const auto& headers = Headers::get();
  return !absl::EqualsIgnoreCase(key, headers.HostLegacy.get()) &&
         !absl::EqualsIgnoreCase(key, headers.Host.get()) &&
         !absl::EqualsIgnoreCase(key, headers.Method.get()) &&
         !absl::EqualsIgnoreCase(key, headers.Scheme.get()) &&
         !absl::StartsWithIgnoreCase(key, headers.prefix());
}
bool MutationUtils :: isSettableHeader ( absl :: string_view key ) { const auto & headers = Headers :: get ( ) ; return ! absl :: EqualsIgnoreCase ( key , headers . HostLegacy . get ( ) ) && ! absl :: EqualsIgnoreCase ( key , headers . Host . get ( ) ) && ! absl :: EqualsIgnoreCase ( key , headers . Method . get ( ) ) && ! absl :: EqualsIgnoreCase ( key , headers . Scheme . get ( ) ) && ! absl :: StartsWithIgnoreCase ( key , headers . prefix ( ) ) ; }
Ignore attempts to set certain sensitive headers that can break later processing.
Ignore attempts to set certain sensitive headers that can break later processing .