mirror of
https://github.com/alibaba/higress.git
synced 2026-02-06 23:21:08 +08:00
fix: Enlarge the request body buffer size when processing multipart data in model-router (#3237)
This commit is contained in:
@@ -227,6 +227,8 @@ FilterHeadersStatus PluginRootContext::onHeader(
|
||||
LOG_DEBUG(absl::StrCat("Enable multipart/form-data mode. Boundary=",
|
||||
boundary_value));
|
||||
removeRequestHeader(Wasm::Common::Http::Header::ContentLength);
|
||||
setFilterState(SetDecoderBufferLimitKey, DefaultMaxBodyBytes);
|
||||
LOG_INFO(absl::StrCat("SetRequestBodyBufferLimit: ", DefaultMaxBodyBytes));
|
||||
return FilterHeadersStatus::StopIteration;
|
||||
}
|
||||
return FilterHeadersStatus::Continue;
|
||||
|
||||
Reference in New Issue
Block a user