Skip to content

Commit

Permalink
Fix wrong path when combined with Rails exceptions_app
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
ursm authored and skryukov committed Jan 21, 2024
1 parent 49ae8db commit 7153fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/skooma/env_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
def call(env, response = nil, with_response: true, with_request: true)
result = {
"method" => env["REQUEST_METHOD"].downcase,
"path" => env["PATH_INFO"]
"path" => env["action_dispatch.original_path"] || env["PATH_INFO"]
}
result["request"] = map_request(env) if with_request
result["response"] = map_response(response) if response && with_response
Expand Down

0 comments on commit 7153fbe

Please sign in to comment.