mirror of
https://github.com/alibaba/higress.git
synced 2026-05-25 21:28:17 +08:00
Add Kling provider support (#3742)
Signed-off-by: wydream <yaodiwu618@gmail.com>
This commit is contained in:
@@ -264,8 +264,9 @@ func onHttpRequestHeader(ctx wrapper.HttpContext, pluginConfig config.PluginConf
|
||||
return types.ActionContinue
|
||||
}
|
||||
|
||||
_, hasRequestBodyHandler := activeProvider.(provider.RequestBodyHandler)
|
||||
hasRequestBody := ctx.HasRequestBody()
|
||||
if hasRequestBody {
|
||||
if hasRequestBody && hasRequestBodyHandler {
|
||||
_ = proxywasm.RemoveHttpRequestHeader("Content-Length")
|
||||
ctx.SetRequestBodyBufferLimit(defaultMaxBodyBytes)
|
||||
// Delay the header processing to allow changing in OnRequestBody
|
||||
|
||||
Reference in New Issue
Block a user