Skip to content

Commit

Permalink
Fix rebase issue in Rack::RequestMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
y9v committed Jan 14, 2025
1 parent b2604ff commit 629e7b5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/datadog/appsec/contrib/rack/request_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,10 @@ def call(env)

http_response = AppSec::Response.negotiate(env, block_actions).to_rack if block_actions

result = ctx.waf_runner.extract_schema

if (result = ctx.processor_context.extract_schema)
scope.processor_context.events << {
if (result = ctx.waf_runner.extract_schema)
ctx.waf_runner.events << {
trace: ctx.trace,
span: ctx.service_entry_span,
span: ctx.span,
waf_result: result,
}
end
Expand Down

0 comments on commit 629e7b5

Please sign in to comment.