mirror of
https://github.com/alibaba/higress.git
synced 2026-05-31 08:07:26 +08:00
upgrade wasm-go sdk of some wasm plugins (#2615)
This commit is contained in:
@@ -80,7 +80,11 @@ func parseConfig(json gjson.Result, config *OpaConfig, log log.Log) error {
|
||||
}
|
||||
|
||||
func onHttpRequestHeaders(ctx wrapper.HttpContext, config OpaConfig, log log.Log) types.Action {
|
||||
return opaCall(ctx, config, nil, log)
|
||||
act := opaCall(ctx, config, nil, log)
|
||||
if act == types.ActionPause {
|
||||
return types.HeaderStopAllIterationAndWatermark
|
||||
}
|
||||
return types.HeaderContinue
|
||||
}
|
||||
|
||||
func onHttpRequestBody(ctx wrapper.HttpContext, config OpaConfig, body []byte, log log.Log) types.Action {
|
||||
|
||||
Reference in New Issue
Block a user