Skip to content

Commit

Permalink
Improve variable naming in Rack::RequestBodyMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
y9v committed Jan 14, 2025
1 parent 278248f commit 3b2a59a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/datadog/appsec/contrib/rack/request_body_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ def call(env)

# TODO: handle exceptions, except for @app.call

request_return = nil
http_response = nil
block_actions = catch(::Datadog::AppSec::Ext::INTERRUPT) do
request_return, _request_response = Instrumentation.gateway.push(
http_response, = Instrumentation.gateway.push(
'rack.request.body', Gateway::Request.new(env)
) do
@app.call(env)
end

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

request_return
http_response
end
end
end
Expand Down

0 comments on commit 3b2a59a

Please sign in to comment.