We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9995ce commit ceb66b6Copy full SHA for ceb66b6
actionpack/lib/action_dispatch/middleware/request_id.rb
@@ -19,10 +19,7 @@ def initialize(app)
19
20
def call(env)
21
env["action_dispatch.request_id"] = external_request_id(env) || internal_request_id
22
- status, headers, body = @app.call(env)
23
-
24
- headers["X-Request-Id"] = env["action_dispatch.request_id"]
25
- [ status, headers, body ]
+ @app.call(env).tap { |status, headers, body| headers["X-Request-Id"] = env["action_dispatch.request_id"] }
26
end
27
28
private
0 commit comments