fix: Enlarge the request body buffer size when processing multipart data in model-router (#3237)

This commit is contained in:
Kent Dong
2025-12-20 10:35:55 +08:00
committed by jingze
parent bf9ef5eefd
commit 5c225de080

View File

@@ -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;