mirror of
https://github.com/alibaba/higress.git
synced 2026-02-26 05:30:50 +08:00
optimize model router&mapper (#1866)
This commit is contained in:
@@ -44,8 +44,8 @@ static RegisterContextFactory register_ModelMapper(
|
||||
namespace {
|
||||
|
||||
constexpr std::string_view SetDecoderBufferLimitKey =
|
||||
"SetRequestBodyBufferLimit";
|
||||
constexpr std::string_view DefaultMaxBodyBytes = "10485760";
|
||||
"set_decoder_buffer_limit";
|
||||
constexpr std::string_view DefaultMaxBodyBytes = "104857600";
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -166,6 +166,7 @@ FilterHeadersStatus PluginRootContext::onHeader(
|
||||
}
|
||||
removeRequestHeader(Wasm::Common::Http::Header::ContentLength);
|
||||
setFilterState(SetDecoderBufferLimitKey, DefaultMaxBodyBytes);
|
||||
LOG_INFO(absl::StrCat("SetRequestBodyBufferLimit: ", DefaultMaxBodyBytes));
|
||||
return FilterHeadersStatus::StopIteration;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user