always set inband transaction even if we have no rules (#2681)
This commit is contained in:
parent
bc9bfa81b2
commit
a62e28fdfb
1 changed files with 2 additions and 2 deletions
|
@ -192,11 +192,11 @@ func (r *AppsecRunner) processRequest(tx appsec.ExtendedTransaction, request *ap
|
|||
}
|
||||
|
||||
func (r *AppsecRunner) ProcessInBandRules(request *appsec.ParsedRequest) error {
|
||||
tx := appsec.NewExtendedTransaction(r.AppsecInbandEngine, request.UUID)
|
||||
r.AppsecRuntime.InBandTx = tx
|
||||
if len(r.AppsecRuntime.InBandRules) == 0 {
|
||||
return nil
|
||||
}
|
||||
tx := appsec.NewExtendedTransaction(r.AppsecInbandEngine, request.UUID)
|
||||
r.AppsecRuntime.InBandTx = tx
|
||||
err := r.processRequest(tx, request)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue